How to make splash.js links?

A place to ask questions and get help. Be the first on your block to post ...

Postby saltybeagle » Thu Apr 26, 2007 3:47 pm

I would replace the code you currently have:
Code: Select all
<img alt="" id="splashRandomImg" src="http://www.unl.edu/unlpub/2004sharedgraphics/transpixel.gif" />
<script type="text/javascript" src="../sharedcode/splash1.js"></script>


With another modeled after the leftRandomPromo

Code: Select all
<div id="splashRandomPromo">
   <a href="#" id="splashRandomPromoAnchor" class="imagelink"><img src="http://www.chem.unl.edu/images/homepage%20new%20pics/21.jpg" alt="" id="splashRandomImg" /></a>
   <script type="text/javascript" src="http://chem.unl.edu/sharedcode/splash1.js"></script>
</div>


Which I tested on http://ucommbieber.unl.edu/workspace/UN ... ixed.shtml

In this I provide a default image in case the user doesn't have javascript, which I would encourage you to do --- also add in a default URL to take the user to, and some alt text for the default image. Then I think you're good to go.

Right now we don't have any fading .js image transitions built into the template... but contributions are welcome.
Brett Bieber
Image
saltybeagle
 
Posts: 376
Joined: Fri Jan 16, 2004 3:10 pm
Location: 321 Admin


Return to Help & Assistance

Who is online

Users browsing this forum: No registered users and 2 guests

cron