Каталог Java scripts на Vmeste.net

============================================================
Вставьте этот код между тегами <head></head> Вашей основной HTML страницы
============================================================



<script language="javascript" type="text/javascript">

var Netscape4 = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var Explorer4 = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

</script>

<script language="javascript1.2" type="text/javascript">
var yBase = window.innerHeight/2; var xBase = window.innerWidth/2; var delay = 20; var yAmpl = 10; var yMax = 40; var step = .2; var ystep = .5; var currStep = 0; var tAmpl=1; var Xpos = 10; var Ypos = 10; var j = 0;

function MoveHandler(evnt) {
Xpos = evnt.pageX ;
Ypos = evnt.pageY ;
}

function SetMenuPosition(leftPixel) {
if (Netscape4) {
document.layers.layerMenu.left=leftPixel; 
}
else if (Explorer4) {
document.all("spanMenu").style.left=leftPixel; 
}
return true;
}

function PositionMenu() {
if (Netscape4) { 
document.layers.layerMenu.top = top.pageYOffset; 
}
else if (Explorer4) { 
document.all("spanMenu").style.top=bbody.scrollTop; 
}
return true;
}

function InvokeMenu () {
if (Netscape4) { 
document.write('<layer id="layerMenu" left="-99" width="120" top="0" height="367" clip="0,0,121,396" onMouseOver="javascript:SetMenuPosition(-2);" onMouseOut="javascript:SetMenuPosition(-99);">\n<img src="7.gif" width=120 height=367 border=0 usemap="#menu">\n</layer>\n'); 
}
else if (Explorer4) { 
document.write('<span id="spanMenu" onMouseOver="javascript:SetMenuPosition(-2);" onMouseOut="javascript:SetMenuPosition(-99);">\n<img src="7.gif" width=120 height=367 border=0 usemap="#menu">\n</span>\n'); 
}
if (Netscape4 || Explorer4) { 
setInterval("PositionMenu()", 200);
}
return true;
}
</script>
<style>
#spanMenu { 
container: positioned; 
position: absolute; 
left: -99px; 
top: 0px; 
width: 120px; 
height: 366px;
}
</style>


============================================================
Вставьте этот код между тегами <body></body> Вашей основной HTML страницы
============================================================



<body id="bbody">





<map name="menu">
<area shape=rect coords="17,15,90,31" href="Link1" alt="A">
<area shape=rect coords="17,41,90,57" href="Link2" alt="B">
<area shape=rect coords="17,67,90,83" href="Link3" alt="C">
<area shape=rect coords="17,93,90,109" href="Link4" alt="D">
<area shape=rect coords="17,119,90,135" href="Link5" alt="E">
<area shape=rect coords="17,145,90,161" href="Link6" alt="F">
<area shape=rect coords="17,171,90,187" href="Link7" alt="G">
<area shape=rect coords="17,197,90,213" href="Link8" alt="H">
<area shape=rect coords="17,223,90,239" href="Link9" alt="I">
<area shape=rect coords="17,249,90,265" href="Link10" alt="J">
<area shape=rect coords="17,275,90,291" href="Link11" alt="K">
<area shape=rect coords="17,301,90,317" href="Link12" alt="L">
<area shape=rect coords="17,327,90,343" href="Link13" alt="M">
</map> 
<script language="javascript1.2" type="text/javascript">
<!-- 
InvokeMenu();
// -->
</script> 
