View Full Version : Default image

04-09-2008, 02:04 PM
1) Script Title: Fadein Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: How would I display a default image in the event the visitor to my site has JavaScript disabled. I would like to at least have one image show instead of a blank box with the image alt text "image". Some users, in particular, those users from a corporate environment may have JavaScript disabled / shut off on their browser. Thanks

04-09-2008, 02:17 PM
In the following snippet (where you inset it in the body of the html document), place noscript tags after it like so:

<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)

<img src="default.png" alt="Default image">

Hope this helps.

04-09-2008, 03:59 PM
Thank you very much! This solved the issue and now my page loads a default image if JavaScript is off or disabled. Now to see if I can get something working for the site navigation - which is none if the JavaScript is off.