Site içinde site.....
<body> <form name="jumpy"> <select name="example" size="1" onChange="gone()"> <!-- CHANGE THE BELOW URLS TO YOUR OWN--> <option value="http://www.yahoo.com" selected>Yahoo.com</option> <option value="http://www.google.com">Google</option> <option value="http://www.lycos.com">Lycos</option> <option value="http://www.AltaVista.com">AltaVista</option> </select> <input type="button" name="test" value="Go!" onClick="gone()"> </form> <script language="javascript"> var displaymode=0 var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.yahoo.com/"></iframe>' if (displaymode==0) document.write(iframecode) function gone(){ var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value if (document.getElementById&&displaymode==0) document.getElementById("external").src=selectedurl else if (document.all&&displaymode==0) document.all.external.src=selectedurl else{ if (!window.win2||win2.closed) win2=window.open(selectedurl) //else if win2 already exists else{ win2.location=selectedurl win2.focus() } } } </script><a href='http://www.htmlkodlar.net'></a> </body>
<head> <style type="text/css"> #tablist{ padding: 3px 0; margin-left: 0; margin-bottom: 0; margin-top: 0.1em; font: bold 12px Verdana; } #tablist li{ list-style: none; display: inline; margin: 0; } #tablist li a{ text-decoration: none; padding: 3px 0.5em; margin-left: 3px; border: 1px solid #778; border-bottom: none; background: white; } #tablist li a:link, #tablist li a:visited{ color: navy; } #tablist li a:hover{ color: #000000; background: #C1C1FF; border-color: #227; } #tablist li a.current{ background: lightyellow; } </style> <script type="text/javascript"> /*********************************************** * Tabbed Document Viewer script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ var selectedtablink="" var tcischecked=false function handlelink(aobject){ selectedtablink=aobject.href tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false if (document.getElementById && !tcischecked){ var tabobj=document.getElementById("tablist") var tabobjlinks=tabobj.getElementsByTagName("A") for (i=0; i<tabobjlinks.length; i++) tabobjlinks[i].className="" aobject.className="current" document.getElementById("tabiframe").src=selectedtablink return false } else return true } function handleview(){ tcischecked=document.tabcontrol.tabcheck.checked if (document.getElementById && tcischecked){ if (selectedtablink!="") window.location=selectedtablink } } </script> </head> <body> <ul id="tablist"> <li><a class="current" href="http://www.google.com/" onClick="return handlelink(this)">Google</a></li> <li><a href="http://www.yahoo.com/" onClick="return handlelink(this)">Yahoo</a></li> <li><a href="http://www.msn.com/" onClick="return handlelink(this)">MSN</a></li> <li><a href="http://www.haber3.com/" onClick="return handlelink(this)">haber3.com</a></li> <li><a href="http://www.htmlkodlar.net" onClick="return handlelink(this)">htmlkodlar.net</a></li> </ul> <iframe id="tabiframe" src="http://www.google.com/" width="98%" height="350px"></iframe> <form name="tabcontrol" style="margin-top:0"> <input name="tabcheck" type="checkbox" onClick="handleview()"> Open tab links in browser window instead. </form> <a href='http://www.htmlkodlar.net'></a> </body>
htmlkodlar.net