View Full Version : help with putting graphics instead of text


sportigurl
01-20-2003, 04:14 PM
hey. On my website I have a code. To see it go here (http://www.dynamicdrive.com/dynamicindex1/navigate2.htm) The problem is that I want the heading to b a graphic and not text. I dont know how u would do that! I hope someone else does! If possible could u copy the code and show me exactly what I should do and where i should put somthing.

aviegrace
01-20-2003, 04:20 PM
In the second box, on where the code it says "Header 1" and "Header 2", erase them and type in the IMG SRC code

Alcy
01-20-2003, 04:21 PM
<h3 style="cursor:pointer; cursor:hand" onClick="expandit(this)">Header 1</h3>
<span style="display:none" style=&{head};>
<img src="image.gif">
</span>

Just exchange "image.gif" with the name of your image.

sportigurl
01-20-2003, 04:47 PM
Those 2 replies don't work. the second one is for a picture instead of a link or somthing. I meant a picture instead of "header 1, 2" I think u may have misunderstood. Plz reply back!

lefty
01-20-2003, 04:52 PM
mind posting a link to the page it's on?

sportigurl
01-20-2003, 05:00 PM
i did post a link to the page it was on in my first post. here it is again. Go to http://www.dynamicdrive.com/dynamicindex1/navigate2.htm

sportigurl
01-20-2003, 05:05 PM
I figured i might as well tell what was wrong with the first suggestion. I did what you said and it worked but then when I clikced on the picture no menu came underneath it and it disappeared! Mayb this will help with future posts

lefty
01-20-2003, 05:23 PM
I meant the page you're working on ;)

sportigurl
01-20-2003, 06:39 PM
the page is geocities.com/drop_foot/index2.html It's really bad because I just startd. I don't see how this will help u but I hope it does! please reply back. I want to get this site done ASAP!

apples
01-20-2003, 07:06 PM
Do you have the image uploaded on your site?

sportigurl
01-20-2003, 07:35 PM
yes I have the images uploaded. I jus wanna know how u could change it from "header 1" to an image usin that code

Alcy
01-23-2003, 12:40 AM
Ooh... is this it?

<img src="IMAGE.GIF" style="cursor:pointer; cursor:hand" onClick="expandit(this)">
<span style="display:none" style=&{head};>
<br>
This is content under Header 1.
</span>

LadyCrow
04-04-2003, 06:40 AM
is there any way to make it so that when the menu is expanded, the space between the kinks and the original text isnt so HUGE?

Alcy
04-04-2003, 05:55 PM
It originally looks like this:
<h3 style="cursor:pointer; cursor:hand" onClick="expandit(this)">Header 2</h3>
<span style="display:none" style=&{head};>
This is content under Header 2.
</span>

Change it to
<font style="cursor:pointer; cursor:hand" onClick="expandit(this)">Header 1</font>
<span style="display:none" style=&{head};>
<br>
This is content under Header 1.
</span>

You don't have to use font tags... you can use divs, etc.

LadyCrow
04-04-2003, 06:49 PM
that was silly of me
thanks
i was sleepy
d=