PDA

View Full Version : Inserting image to "Dynamic-FX Slide-In Menu (v 6.5)"



John Michael Kinsella
02-06-2008, 12:43 PM
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

jscheuer1
02-06-2008, 06:24 PM
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:


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:


.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 Michael Kinsella
02-07-2008, 01:50 PM
thanks for the response, problem solved, much appreciated...


John