Results 1 to 2 of 2

Thread: Adding to a dropdown menu script

  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding to a dropdown menu script

    1) Script Title: Drop down menu w/ description

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...bodescribe.htm

    3) Is there a way to modify this script to include a particular image when an option is selected? If option1 is selected, image1 appears with text1, if option2 is selected, image2 appears with text2, etc.


    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Make this part like so:

    Code:
    //1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
    var thetext1=new Array()
    thetext1[0]='Comprehensive JavaScript tutorials and over 400+ free scripts<img src="whatever.gif" alt="original image" title="">'
    thetext1[1]='Direct link to hundreds of free Java applets online!<img src="another.gif" alt="original image" title="">'
    thetext1[2]='Up to date news on the technology front<img src="yet_another.gif" alt="original image" title="">'
    thetext1[3]='News.com- The #1 technology News site.<img src="still_another.gif" alt="original image" title="">'
    thetext1[4]='Web Coding and development forums<img src="guess_which.gif" alt="original image" title="">'
    Note: The outermost quotes have been changed from double (") to single (') to allow for the double quotes inside the img tags.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •