Advanced Search

Results 1 to 7 of 7

Thread: drop down menu w/ IMAGE description

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

    Default drop down menu w/ IMAGE description

    1) Script Title:
    Drop Down Menu w/ Description

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

    Is it possible to have the text description that pops up when a drop down option is selected, be accompanied by a image as well?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    Yes it very well is.
    Where ever you put the text the is there on event, is where you should put the image tag.
    Hope this Helps,
    Nile
    Jeremy | jfein.net

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

    Default

    I appreciate your help but I still am not absolutely sure...

    so I would add <img src="http://www.example.com/image.jpg"> to the array?

    could you include an example from the original script?

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Just add the img tag, just like your hand coding it in your markups
    Code:
    thetext1[0]="<img src='http://www.lettucenodes.com/images/lettucnodes1.jpg' alt='myimage'>Comprehensive JavaScript tutorials and over 400+ free scripts"
    thetext1[1]="<img src='http://www.freewarejava.com/applets/images/reallens.gif' alt='myimage'>Direct link to hundreds of free Java applets online!"
    thetext1[2]="<img src='http://blog.wired.com/photos/uncategorized/fakesteve.jpg' alt='myimage'>Up to date news on the technology front"
    thetext1[3]="<img src='http://www.september11news.com/Dec11ZacariasMoussaoui.jpg' alt='myimage' >News.com- The #1 technology News site."
    thetext1[4]="<img src='http://codingforums.com/img/logo.gif' alt='myimage'>Web Coding and development forums"
    You might also find it useful to set how your image will be rendered in the CSS...

    See if it helps
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ahhhh. Gracias.

  6. #6
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you again for your help, that works beautifully. BUT Now is it possible to have the image that pops up with the description appear somewhere else on the page, that's not directly below the drop down menu?

    For instance, if I had 3 vertical columns on a page...
    left--drop down menus
    center--website content, etc etc
    right--image popup with description from drop down selections in left column

    Or maybe it would be easier to target them to an iframe?

    Maybe I'm asking too much? lol

    Thanks again.

  7. #7
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Yes, both are possible, but then it's another story..not relating to the thread...maybe if you could create a new one


    ...And also, decide which one you want, the iframe or the div....
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •