/    Sign up×
Community /Pin to ProfileBookmark

Expand Image Menu

I would like to click on an menu (image) and it will expand into 2 or more sub-menus. I try to search through the internet for source or guide to do it. Any hints or resourses will be helpful.

Thank you. :rolleyes:

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@DreamKidauthorMar 29.2006 — Anyone? ?
Copy linkTweet thisAlerts:
@DreamKidauthorMar 29.2006 — Guess I'm answering my own question now..

[CODE]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Test</title>

<style type="text/css">
#arc, arc2 {display: none;}
li {list-style-type: none; left: 0em;}
.mar {margin-top: -.025em;}
</style>


<script language="JavaScript" type="text/javascript">
<!--
function kadabra(zap) {
if (document.getElementById) {
var abra = document.getElementById(zap).style;
if (abra.display == "block") {
abra.display = "none";
}else{
abra.display = "block";
}
return false;
}else{
return true;
}
}
//-->
</script>

</head>
<body>

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="#" onclick="return kadabra('arc');"><img src="http://www.google.com.my/images/logo_sm.gif" /></a><br>
<ul id="arc" class="mar">
<li><a href="#" onclick="return kadabra('arc2');">
<img src="http://www.google.com.my/images/logo_sm.gif" />
</li></a>
</ul>
<img src="logo.gif" />
</td>
</tr>
</table>

</body>
</html>
[/CODE]
×

Success!

Help @DreamKid 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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