Results 1 to 3 of 3

Thread: Default image

  1. #1
    Join Date
    Mar 2008
    Posts
    9
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Default image

    1) Script Title: Fadein Slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.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

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    In the following snippet (where you inset it in the body of the html document), place noscript tags after it like so:

    Code:
    <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)
     
    </script>
    <noscript>
     <img src="default.png" alt="Default image">
    </noscript>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2008
    Posts
    9
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default RE: Default Image

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •