/    Sign up×
Community /Pin to ProfileBookmark

Drop down menus

<html>
<style type=”text/css”>
a:link{text-decoration: none}
a:link{color:white}
a:hover{color:black}
</style>
<a href=”section 1″

onmouseOver=”document.write
(‘<table border=1 cellspacing=0 cellpaddin=0 name=mytable ><td bgcolor=red>My Links</a></td><tr> <td bgcolor=red> <a href=http://www.msn.com>msn.com</a></td><tr><td bgcolor=red><a href=http://www.freeserve.com>freeserve</a></td></table>’)”>

<table border=”1″ cellspacing=”0″ cellpadding=”0″><td bgcolor=”red”>My Links</td></table> </a>
</html>
[b]This is my code for a drop down menu how can i make it so when u take the mouse off it it will go back to how it looked before you put your mouse over it[/b]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriFeb 01.2004 — [code=php]onmouseout="return true;"[/code] should do it
Copy linkTweet thisAlerts:
@makaveliauthorFeb 02.2004 — <html>

<style type="text/css">

a:link{text-decoration: none}

a:link{color:white}

a:hover{color:black}

</style>

<a href="section 1"

onmouseOver="document.write

('<table border=1 cellspacing=0 cellpaddin=0 name=mytable ><td bgcolor=red>My Links</a></td><tr> <td bgcolor=red> <a href=http://www.msn.com>msn.com</a></td><tr><td bgcolor=red><a href=http://www.freeserve.com>freeserve</a></td></table>')"

onmouseOut="return true;">

<table border="1" cellspacing="0" cellpadding="0"><td bgcolor="red">My Links</td></table> </a>

</html>

[b]this still dosent work[/b]?
Copy linkTweet thisAlerts:
@makaveliauthorFeb 02.2004 — OR is there a better way to make drop down tables but im not that good so show the easiest way
Copy linkTweet thisAlerts:
@FangFeb 02.2004 — &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;title&gt;drop down menu&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
&lt;style type="text/css"&gt;
&lt;!--
.menu {display:none;margin:0;padding:0;list-style:none;}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div style="width:5em;" onmouseover="document.getElementById('menuX').style.display = 'block';" onmouseout="document.getElementById('menuX').style.display = 'none';"&gt;
&lt;div style="font-size:1em; font-weight:bold;"&gt;Fruit&lt;/div&gt;
&lt;ul id="menuX" class="menu" style=""&gt;
&lt;li&gt;&lt;a href="apple.html"&gt;apple&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="banana.html"&gt;banana&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="cranberry.html"&gt;cranberry&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
×

Success!

Help @makaveli spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...