Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Exador #1
Show / Hide Javascript
I'm not to knowledgeable of Java and can't seem to get this script to show in
the hidden state. I would like it to start with just the Expand showing. If
anyone can help, I would appericate it . Thanks, Chris:confused;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Open/Closed Box</title>
<script type="text/javascript">
function openClose(id) {
var lnk=document.getElementById(id+"link");
var box=document.getElementById(id+"content");
if(box.style.display=="none") {
box.style.display="block";
lnk.firstChild.data="Close";
} else {
box.style.display="none";
lnk.firstChild.data="Expand";
}
return false;
}
</script>
</head>
<body>
<div id="box1" style="width:300px">
<div id="box1title"><a href="#" id="box1link" onclick="return
openClose('box1')">Close</a></div>
<div id="box1content">
This is the content for box1<br/>
It should hide when you click the close link<br>
This is a test <a href="http://www.google.com" target="_blank">LINK</a></p>
</div>
</div>
<div id="box2" style="width:300px">
<div id="box1title" style=""><a href="#" id="box2link" onclick="return
openClose('box2')">Close</a></div>
<div id="box2content">
This is the content for box2<br/>
It should hide when you click the close link<br>
This is a test <a href="http://www.yahoo.com" target="_blank">LINK</a></div>
</div>
</div>
</body>
</html>
Exador Guest
-
How to hide/show a group
Hello, I created a group and added some children to it How can I show/hide the group with all children included? The group itself doesn't have... -
popup menus won't hide - PVII show/hide layers behaviour
I've used the 'Auto show/hide by PVII" behaviour to create some popup menus for the navigation which make use of divs which appear and disappear.... -
Show Hide javascript not working
Can someone tell me what I am doing wrong??? Please help. <html> <head> <title>Untitled</title> <script language="JavaScript"> <!-- function... -
hide/show with mouseover
I have page with all the medical terms. Instead of click on each term to show the definition, I want it to show when I have the mouseover on each... -
HIde/Show Templatecolumn
Hi Guys, I have a templatecolumn that only has a edititemplate with a textbox, when not editing it must not be visible. Right now I set the... -
Php Cod3r #2
Re: Show / Hide Javascript
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Open/Closed Box</title>
<script type="text/javascript">
function openClose(id) {
var lnk=document.getElementById(id+"link");
var box=document.getElementById(id+"content");
if(box.style.display=="none") {
box.style.display="block";
lnk.firstChild.data="Close";
} else {
box.style.display="none";
lnk.firstChild.data="Expand";
}
return false;
}
</script>
</head>
<body>
<div id="box1" style="width:300px">
<div id="box1title"><a href="#" id="box1link" onclick="return
openClose('box1')">Expand</a></div>
<div id="box1content" style="display: none">
This is the content for box1<br/>
It should hide when you click the close link<br>
This is a test <a href="http://www.google.com" target="_blank">LINK</a></p>
</div>
</div>
<div id="box2" style="width:300px">
<div id="box1title" style=""><a href="#" id="box2link" onclick="return
openClose('box2')">Expand</a></div>
<div id="box2content" style="display: none">
This is the content for box2<br/>
It should hide when you click the close link<br>
This is a test <a href="http://www.yahoo.com" target="_blank">LINK</a></div>
</div>
</div>
</body>
</html>
Php Cod3r Guest



Reply With Quote

