نوشته هاي دوستمون Negin_ET بسيار عاليه و در ادامه بحثهاي ايشون سوال شما از دو قسمت است طريقه باز كردن صفحه ويندوزmakan گفت:سلام و من مي خواستم بدونم چطوري مي شه كه وقتي ميريم توي يه سايت و روي يه كلمه موس رفته مي شه يه پنجره كوچك باز مي شه توش ليست زير مجموعه ي اون لينك هستش مثل سايت پارس آنلاين كه وقتي ميريم روي يك كلمه (هايپر لينك شده ) يه زير مجموعه براش باز مي شه و ...
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function win() {
msg=window.open("","msg","height=200,width=200,left=80,top=80");
msg.document.write("<html><title>Windows!</title>");
msg.document.write("<body bgcolor='white' onblur=window.close()>");
msg.document.write("<center>page content here</center>");
msg.document.write("</body></html><p>");
// If you just want to open an existing HTML page in the
// new window, you can replace win()'s coding above with:
// window.open("page.html","","height=200,width=200,left=80,top=80");
}
// End -->
</script>
<center>
<form>
<input type="button" value="Open Window" onclick="win()">
</form>
</center>
<!-- Or you may use: <a href="javascript:win()">Open Window</a> -->
<a href="http://xxxxxxxxx/xxxxxxxxxx.html" target="xxxxx.html"></a>
<style>
<!--
#foldheader{cursor:hand ; font-weight:bold ;
list-style-image:url(fold.gif)}
#foldinglist{list-style-image:url(list.gif)}
//-->
</style>
<script language="JavaScript1.2">
<!--
var head="display:''"
img1=new Image()
img1.src="fold.gif"
img2=new Image()
img2.src="open.gif"
function change(){
if(!document.all)
return
if (event.srcElement.id=="foldheader") {
var srcIndex = event.srcElement.sourceIndex
var nested = document.all[srcIndex+1]
if (nested.style.display=="none") {
nested.style.display=''
event.srcElement.style.listStyleImage="url(open.gif)"
}
else {
nested.style.display="none"
event.srcElement.style.listStyleImage="url(fold.gif)"
}
}
}
document.onclick=change
//-->
</script>
<ul>
<li id="foldheader">News</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.xxx1.com">x1</a></li>
<li><a href="http://www.xxxxxx2.com">x2</a></li>
<li><a href="http://www.xxxxxxxxxx3.com">x3</a></li>
</ul>
<li id="foldheader">Games</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.bbbb1t.com">b1</a></li>
<li><a href="http://www.bbbbbbb2.com">b2</a></li>
<li><a href="http://www.bbbbbb3.com">b3</a></li>
</ul>
<li id="foldheader">Software</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.cccccccc.com">C 1</a></li>
<li><a href="http://wwwccccccccccc.com">C 2</a></li>
<li id="foldheader">Nested</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.ffffffff.com">F 1</a></li>
<li><a href="http://www.ffffff.com">F 2</a></li>
</ul>
<li><a href="http://www.g.com">Fr 3</a></li>
<li><a href="http://www.gggggggg.com">F4</a></li>
</ul>
</ul>