PDA

View Full Version : can only make buttons pictures? read...


Ludelover
11-23-2002, 06:46 AM
ok so i'm setting up a dorp down menu of course. and the main menu looks like this....

/************************************************
*********-------Main Menu 1--------**************
************************************************/

DQM_rollover_image1 = "sample_images/products_hl.gif"
DQM_rollover_wh1 = "65,22"
//DQM_url1 = "my_url.html";

which correspondes to another file which will look like this...

<img src="sample_images/quickmenu.gif" width="75" height="22" name="menu0" id="menu0" onmouseover="showMenu(event)" onmouseout="hideMenu(event)"><img
src="sample_images/products.gif" width="65" height="22" name="menu1" id="menu1" onmouseover="showMenu(event)" onmouseout="hideMenu(event)"><img
src="sample_images/downloads.gif" width="76" height="22" name="menu2" id="menu2" onmouseover="showMenu(event)" onmouseout="hideMenu(event)"><img
src="sample_images/contact.gif" width="55" height="22" name="menu3" id="menu3" onmouseover="showMenu(event)" onmouseout="hideMenu(event)">


is there a way i can make it so the buttons are NOT pictures? I just want regular text. As you can see in the <img> code it has the "name" and "id" which i need to include in the code, but i do not want it to be a picture.

*help*

thanks

matt

wap3
11-23-2002, 09:18 AM
I am not sure what your onmouseover event is doing, but why don't you just try putting the onmouseover and mouseout in a text link like this

<a href="" onmouseover="showMenu(event)" onmouseout="hideMenu(event)">Text Link</a>

I am no expert with javascript so just ty and see.

I make no promises !!!

:p


oops just re-read what you put about needing the name and id.

How about something like this, depending on how your page is laid out:

<td id="menu3" name="menu3"><a href="" onmouseover="showMenu(event)" onmouseout="hideMenu(event)">Text Link</a></td>

:D

Ludelover
11-23-2002, 09:49 AM
Originally posted by wap3
I am not sure what your onmouseover event is doing, but why don't you just try putting the onmouseover and mouseout in a text link like this

<a href="" onmouseover="showMenu(event)" onmouseout="hideMenu(event)">Text Link</a>

I am no expert with javascript so just ty and see.

I make no promises !!!

:p


oops just re-read what you put about needing the name and id.

How about something like this, depending on how your page is laid out:

<td id="menu3" name="menu3"><a href="" onmouseover="showMenu(event)" onmouseout="hideMenu(event)">Text Link</a></td>

:D
hehe, thanks for the suggestion. The file does recognize <td id="menu3" name="menu3"><a href="" onmouseover="showMenu(event)" onmouseout="hideMenu(event)">Text Link</a></td> and it shows the drop down menu but the "text link" will be in the middle and the drop down menu will appear in the top left on the browser. wierd! know what would be causing that?

Ludelover
11-23-2002, 10:05 AM
I've decided i really have javascript :(

wap3
11-23-2002, 01:56 PM
Thats really hard to answer because we don't know what your script does and how you have your page set out. If the text is appearing in the middle of the cell why not use

<td align="left"></td>

Just I thought

I you want more advice I would post some code

:thumbsup: