• Page 1 of 2
  • 1
  • 2
  • »
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » How to create simple HTML mouseover menu (Tutorial)
How to create simple HTML mouseover menu
Jan
Posts: 301
Reputation: 19

Message # 1 | 2:39 PM
here is sample code:
Quote
<a href="SITE_URL" title="BUTTON_TITLE"><img src="IMG1" onmouseover="this.src='IMG2'" onmouseout="this.src='IMG1'" border="0"></a>

SITE_URL- site url
BUTTON_TITLE- mouseover text (ex: main, forum ...)
IMG1- main image
IMG2- mouseover image


Post edited by Jan - Saturday, 2011-04-09, 2:41 PM
komsha
Posts: 77
Reputation: 1

Message # 2 | 7:55 PM
wher to put this codE?
Jan
Posts: 301
Reputation: 19

Message # 3 | 8:11 PM
komsha, wherever you want your menu to be.
I suggsest to but it : CP - customize design - top part of site.. (depends on your design number)

shadychiri
Posts: 62
Reputation: 2

Message # 4 | 9:57 PM
while the embedded JavaScript is efficient it drags a lot i think the best option is using CSS
Jan
Posts: 301
Reputation: 19

Message # 5 | 1:20 AM
shadychiri, this is just one way to do it smile
Blazer
Posts: 310
Reputation: 25

Message # 6 | 9:46 AM
there should be a background for the buttons but it doesnt appear ( http://test222.ucoz.com )
If i helped you + My Reputation and Give me an Award.
Animorph
Posts: 2856
Reputation: 189

Message # 7 | 9:58 AM
Blazer, you need to make the background image appear by coding your own with CSS for example. because Jan's code doesn't give a backlground for the buttons it just shows you how to create a hovering button
To busy building a passive income online ;)
Blazer
Posts: 310
Reputation: 25

Message # 8 | 10:25 AM
can you show me how to make the background ?
If i helped you + My Reputation and Give me an Award.
Animorph
Posts: 2856
Reputation: 189

Message # 9 | 10:30 AM
Blazer, provide me your menu code , information where your menu is located and design number and i will try smile
To busy building a passive income online ;)
Blazer
Posts: 310
Reputation: 25

Message # 10 | 1:41 PM
Design : #982

Code
<a href="http://test222.ucoz.com/" title="Home"><img src="http://test222.ucoz.com/img.png" onmouseover="this.src='http://test222.ucoz.com/img3.png'" onmouseout="this.src='http://test222.ucoz.com/img2.png'" border="0"></a>

If i helped you + My Reputation and Give me an Award.
Jan
Posts: 301
Reputation: 19

Message # 11 | 9:09 PM
Blazer, where do you want your menu (position)Up or somewhere downward?
Blazer
Posts: 310
Reputation: 25

Message # 12 | 6:07 AM
the same place the website in example has it
If i helped you + My Reputation and Give me an Award.
Jan
Posts: 301
Reputation: 19

Message # 13 | 10:21 AM
Blazer, here is a code for you:
Quote
<table style="text-align: left; background: url('/image.jpg') #000000 ; width: 100%;"border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><a href="http://test222.ucoz.com/" title="Home"><img src="http://test222.ucoz.com/img.png" onmouseover="this.src='http://test222.ucoz.com/img3.png'" onmouseout="this.src='http://test222.ucoz.com/img2.png'" border="0"></a></td>
</tr>
</tbody>
</table>

marked in red: background image (be sure that background image is same height as your menu button!)
marked in green: Your menu code goes here..
marked in blue: your menu position (left - right - center)


Post edited by Jan - Sunday, 2011-04-17, 10:23 AM
Blazer
Posts: 310
Reputation: 25

Message # 14 | 12:54 PM
thanks smile

Added (2011-04-20, 6:54 Am)
---------------------------------------------
i cant put a button next to the other button.


If i helped you + My Reputation and Give me an Award.
Post edited by Blazer - Sunday, 2011-04-17, 1:18 PM
Jan
Posts: 301
Reputation: 19

Message # 15 | 1:35 PM
Blazer, just but next button code after lastone (marked in green in last post)

If you still have problems provide your menu code.


uCoz Community » For Webmasters » Custom Solutions » How to create simple HTML mouseover menu (Tutorial)
  • Page 1 of 2
  • 1
  • 2
  • »
Search: