A demora kattintva megnézheted hogy fog kinézni amit szeretnél elhelyezni!
Java Script menü
A kurzort egy menüpontra húzva bejön az hoz tartozó menüpontok.
Demo
<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1)
<a href="http://www.scriptcenter.hu/index.php?option=com_content&task=section&id=1&Itemid=2" onMouseOver="showit(0)">Kódok</a> | <a href="" onMouseOver="showit(1)">Más oldalak</a><br />
<!-- Szerkeszti a dimenziókat a lent, plusz háttérszín
<ilayer width="400" height="32" name="dep1" bgcolor="#E6E6FF">
<layer name="dep2" width="400" height="32">
</layer></ilayer><div id="describe" style="background-color:#E6E6FF;width:400px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2" type="text/javascript">
var submenu=new Array()
//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
submenu='<font size="2" face="Verdana"><b><a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=17&Itemid=2">Szöveg kijelölés, másolás</a> | <a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=15&Itemid=38">Favicon</a></b></font>'
submenu='<font size="2" face="Verdana"><b><a href="http://www.startlap.hu">startlap.hu</a> | <a href="http://Freewebsablon.hu">Freewebsablon</a> | <a
href="http://gportal.hu">G-Portal</a> | <a href="http://scriptcenter.hu">Script - Center</a></b></font>'
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500
/////No need to edit beyond here
var menuobj=document.<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1)
<a onMouseOver="showit(0)">Linkek</a> | <a href="http://www.scriptcenter.hu/index.php?option=com_content&task=section&id=1&Itemid=2" onMouseOver="showit(1)">Kódok<br /></a>
<!-- Edit the dimensions of the below, plus background color
<ilayer width="400" height="32" name="dep1" bgcolor="#E6E6FF">
<layer name="dep2" width="400" height="32">
</layer></ilayer><div id="describe" style="background-color:#E6E6FF;width:400px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2" type="text/javascript">
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/
var submenu=new Array()
//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
submenu='<font size="2" face="Verdana"><b><a href="http://www.freewebsablon.hu"> FreeWebSablon </a> | <a href="http://www.startlap.hu"> Startlap </a> | <a href="http://www.iwiw.hu">IWIW</a> | <a href="http://www.simplemachines.org">SMF</a> | <a href="http://www.freemail.hu">freemail</a></b></font>'
submenu='<font size="2" face="Verdana"><b><a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=17&Itemid=2">Szöveg kijelölés, Másolás</a> | <a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=15&Itemid=38">Favicon</a></b></font>'
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500
/////No need to edit beyond here
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>rget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
<a href="http://www.scriptcenter.hu/index.php?option=com_content&task=section&id=1&Itemid=2" onMouseOver="showit(0)">Kódok</a> | <a href="" onMouseOver="showit(1)">Más oldalak</a><br />
<!-- Szerkeszti a dimenziókat a lent, plusz háttérszín
<ilayer width="400" height="32" name="dep1" bgcolor="#E6E6FF">
<layer name="dep2" width="400" height="32">
</layer></ilayer><div id="describe" style="background-color:#E6E6FF;width:400px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2" type="text/javascript">
var submenu=new Array()
//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
submenu='<font size="2" face="Verdana"><b><a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=17&Itemid=2">Szöveg kijelölés, másolás</a> | <a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=15&Itemid=38">Favicon</a></b></font>'
submenu='<font size="2" face="Verdana"><b><a href="http://www.startlap.hu">startlap.hu</a> | <a href="http://Freewebsablon.hu">Freewebsablon</a> | <a
href="http://gportal.hu">G-Portal</a> | <a href="http://scriptcenter.hu">Script - Center</a></b></font>'
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500
/////No need to edit beyond here
var menuobj=document.<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1)
<a onMouseOver="showit(0)">Linkek</a> | <a href="http://www.scriptcenter.hu/index.php?option=com_content&task=section&id=1&Itemid=2" onMouseOver="showit(1)">Kódok<br /></a>
<!-- Edit the dimensions of the below, plus background color
<ilayer width="400" height="32" name="dep1" bgcolor="#E6E6FF">
<layer name="dep2" width="400" height="32">
</layer></ilayer><div id="describe" style="background-color:#E6E6FF;width:400px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2" type="text/javascript">
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/
var submenu=new Array()
//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
submenu='<font size="2" face="Verdana"><b><a href="http://www.freewebsablon.hu"> FreeWebSablon </a> | <a href="http://www.startlap.hu"> Startlap </a> | <a href="http://www.iwiw.hu">IWIW</a> | <a href="http://www.simplemachines.org">SMF</a> | <a href="http://www.freemail.hu">freemail</a></b></font>'
submenu='<font size="2" face="Verdana"><b><a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=17&Itemid=2">Szöveg kijelölés, Másolás</a> | <a href="http://www.scriptcenter.hu/index.php?option=com_content&task=view&id=15&Itemid=38">Favicon</a></b></font>'
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500
/////No need to edit beyond here
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>rget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
Az oldal letöltés mérése
<SCRIPT language=JavaScript>
// create a new Date object then get the current time
var start = new Date();
var startsec = start.getTime();
// run a loop counting up to 250,000
var num = 0;
for( var i = 0; i < 250000; i++ )
{
num++;
}
var stop = new Date();
var stopsec = stop.getTime();
var loadtime = ( stopsec - startsec ) / 1000;
</SCRIPT> <center> <SCRIPT>
document.write("Oldal letöltése: " +loadtime+ " másodperc");
</SCRIPT> </center>
<SCRIPT language=JavaScript>
// create a new Date object then get the current time
var start = new Date();
var startsec = start.getTime();
// run a loop counting up to 250,000
var num = 0;
for( var i = 0; i < 250000; i++ )
{
num++;
}
var stop = new Date();
var stopsec = stop.getTime();
var loadtime = ( stopsec - startsec ) / 1000;
</SCRIPT> <center> <SCRIPT>
document.write("Oldal letöltése: " +loadtime+ " másodperc");
</SCRIPT> </center>
// create a new Date object then get the current time
var start = new Date();
var startsec = start.getTime();
// run a loop counting up to 250,000
var num = 0;
for( var i = 0; i < 250000; i++ )
{
num++;
}
var stop = new Date();
var stopsec = stop.getTime();
var loadtime = ( stopsec - startsec ) / 1000;
</SCRIPT> <center> <SCRIPT>
document.write("Oldal letöltése: " +loadtime+ " másodperc");
</SCRIPT> </center>