Results 1 to 3 of 3

Thread: Inserting image to "Dynamic-FX Slide-In Menu (v 6.5)"

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

    Default Inserting image to "Dynamic-FX Slide-In Menu (v 6.5)"

    Dynamic-FX Slide-In Menu (v 6.5)

    http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm

    ok, essentially the problem here should be easy to solve i'm sure. but for some reason, despite my best efforts though it isnt working.

    so, the code (below) works, i get the slide bar, i can edit the text etc.

    barText="DETAILS"; // <IMG> tag supported. Put exact html for an image to show.

    however; it says i can add an image. so , i created an image and put in the link. (below.)

    barText="<img src="images/details.gif" />"; // <IMG> tag supported. Put exact html for an image to show.

    ... the image does not show in place of the text. i cant figure out why...


    i thought that maybe the img src should be relative to the script, not the page, tried copying the image folder there... that didnt work either..

    my only other guess was that it was related to the face that it was on my computer and didnt have a full "http://" link.. but that shouldnt be a problem right?

    any help would be greatly appreciated

    cheers

    John

  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

    It's not really well explained. When it says 'exact' it means that the image tag must be in caps like it is in the instructions - also, you must not use the same delimiters within the tag as are used to delimit the variable's value without escaping them, the easiest way is to use single quotes (') to delimit the value:

    Code:
    barText='<IMG src="images/details.gif" />'; // <IMG> tag supported. Put exact html for an image to show.
    This is a bad idea, use HTML, not XHTML:

    Code:
    .gif" />
    But that depends upon your DOCTYPE, which, as I say, should be HTML, not XHTML. Upper case tag names are invalid in XHTML, but the script requires it here. There is virtually no reason to use an XHTML DOCTYPE.
    - John
    ________________________

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

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

    Default

    thanks for the response, problem solved, much appreciated...


    John

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
  •