Programalama > JAVA SCRIPT


Ort. 0
Puan ver:
<span id="staticcombo" style="position:absolute;left:0;top:0;visibility:hidden">
<form name="jumpy">
<p><select name="example" size="1" onChange="gone()">
<option value="http://www.ziyaretcimakinesi.com">Ziyaretci Makinesi</option>
<option value="http://www.kopru.net">Türk Lobbisi</option>
<option value="http://java.ziyaretcimakinesi.com">Javascript</option>
<option value="http://portal.ziyaretcimakinesi.com">Portal</option>
</select>

<script language="javascript">
<!--

/*
Her zaman görülen acilan menü:
Ziyaretci Makinesi (http://www.ziyaretcimakinesi.com)
*/

//enter "" ayni sayfa icin, "_new" yeni sayfa icin", or "Frame_Ismi" Frame icinde acilmasi icin
var linktarget="_new"

function gone(){
if (linktarget=="")
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
else if (linktarget=="_new")
window.open(document.jumpy.example.options[document.jumpy.example.selectedIndex].value)
else{
targetobj=eval("window.parent."+linktarget)
targetobj.location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
}
//-->
</script>


</p>
</form>
</span>


<script language="JavaScript1.2">

function initialize(){
comboobj=document.all? document.all.staticcombo : document.getElementById? document.getElementById("staticcombo") : document.layers? document.staticcombo : 0

windowwidth=window.innerWidth? window.innerWidth-30 : document.body.clientWidth-20
windowheight=window.innerHeight? window.innerHeight : document.body.clientHeight

if (!comboobj)
return

if (document.all || document.getElementById){
combowidth=comboobj.offsetWidth
comboheight=comboobj.offsetHeight
setInterval("staticit_dom()",50)
comboobj.style.visibility="visible"
}
else if (document.layers){
combowidth=comboobj.document.width
comboheight=comboobj.document.height
setInterval("staticit_ns()",50)
comboobj.visibility="show"
}
}

function staticit_dom(){
var pageoffsetx=document.all? document.body.scrollLeft : window.pageXOffset
var pageoffsety=document.all? document.body.scrollTop : window.pageYOffset

comboobj.style.left=pageoffsetx+windowwidth-combowidth
comboobj.style.top=pageoffsety+windowheight-comboheight
}

function staticit_ns(){
comboobj.left=pageXOffset+windowwidth-combowidth
comboobj.top=pageYOffset+windowheight-comboheight
}

window.onload=initialize
</script>


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.