View Full Version : HELP need menu help
crazygirl
Dec 5th 2006, 5:28 pm
I added a flash chat that needs to open in another window - that all works fine - but when you put your mouse over the "Webcam" in the main menu it does not go white like the rest of the options here is the code can anyone help me with it thanks :). I know nothing about JS here is my problem in the 1st code listed below when u put your mouse over it the Link turns White in the 2nd set of code it does not so it does not look like a link - can anyone help me get the 2nd oneto act like the 1st ? Thank
FIRST LINK
<td class="menu" onclick="javascript:window.location.href='{%HOME%}/worldmap.php';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';"><a href="{%HOME%}/worldmap.php">MAP</a></td>
SECOND LINK
<td class="menu" onClick="javascript:window.open('{%HOME%}/flashchat.php','WEBCHAT', 'toolbar=yes, directories=no, location=no, status=yes, menubar=no,resizable=yes, scrollbars=yes, width=700, height=600'); return false">WEBCAM & CHAT</a></td>
Logic Ali
Dec 5th 2006, 5:40 pm
I added a flash chat that needs to open in another window - that all works fine - but when you put your mouse over the "Webcam" in the main menu it does not go white like the rest of the options here is the code can anyone help me with it thanks :). I know nothing about JS here is my problem in the 1st code listed below when u put your mouse over it the Link turns White in the 2nd set of code it does not so it does not look like a link - can anyone help me get the 2nd oneto act like the 1st ? Thank
FIRST LINK
<td class="menu" onclick="javascript:window.location.href='{%HOME%}/worldmap.php';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';"><a href="{%HOME%}/worldmap.php">MAP</a></td>
SECOND LINK
<td class="menu" onClick="javascript:window.open('{%HOME%}/flashchat.php','WEBCHAT', 'toolbar=yes, directories=no, location=no, status=yes, menubar=no,resizable=yes, scrollbars=yes, width=700, height=600'); return false">WEBCAM & CHAT</a></td>
It needs onmouseover="this.className='menu2';" onmouseout="this.className='menu';"
same as in the first.
crazygirl
Dec 5th 2006, 5:42 pm
Where do you put it ? I tried that it did not work ?
crazygirl
Dec 6th 2006, 4:58 am
I can't believe no one would know this it seems easy but I know nothing about programming :(
krakjoe
Dec 6th 2006, 5:05 am
It's very hard to work with two lines of a page, try pasting the entire html or give a link to it...
crazygirl
Dec 6th 2006, 6:27 am
I don't know what you mean there are 2 links one works right and one does not - the one on top works basically i need to know where to put the stuff below in the 2nd link to make it highlight properly
onmouseover="this.className='menu2';" onmouseout="this.className='menu';
krakjoe
Dec 6th 2006, 6:54 am
someone already answered that question for you, and you said it didn't work, so if you want more help you'll need to link to the page or paste the html for the page.....
crazygirl
Dec 6th 2006, 7:54 am
No he said to add the code but I don;t know where to put it :( in the link
krakjoe
Dec 6th 2006, 9:18 am
either inside the <a tag or inside a <td tag should work.....
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.