Forum'da ara:
Ara


« Önceki başlık :: Sonraki başlık »  
Yazar Mesaj
Mesaj22.01.2011, 12:11 (UTC)    
Mesaj konusu: Bu Menüyü Nasıl Çalıştırabilirim? -Yardım Lütfen-

Kod:
<SELECT NAME="menu">  <OPTION SELECTED VALUE="http://ultraslan-cimbom-haber.tr.gg/FLORYA-G-Ue-NL-Ue-G-Ue-.htm">Florya Günlüğü  <OPTION VALUE="http://ultraslan-cimbom-haber.tr.gg/ZiRAAT-T-Ue-RKiYE-KUPASI.htm">Türkiye Kupası  <OPTION VALUE="http://ultraslan-cimbom-haber.tr.gg/MA%C7-SONU_MA%C7--Oe-N-Ue-.htm">Maç Sonu-Maç Önü  <OPTION VALUE="link3.htm">  <OPTION VALUE="link4.htm">  </SELECT> <INPUT TYPE=BUTTON VALUE="Git" onClick="document.location.href = this.form.menu.options[this.form.menu.selectedIndex].value">  </FORM> 


Bu menü kodu çalıştıramadım git butonuna basıyorum ama sayfayı açmıyor ne yapmam lazım...
______________
Burda Sadece Galatasaray Spor Kulübü Konuşulur...


__________________________________________________

Arrow Galatasaray'lıların Yeni adresi Exclamation Arrow Herkes Burda Hadi Sende Gel Exclamation Wink
Mesaj16.02.2011, 22:09 (UTC)    
Mesaj konusu:

al kardesim belki isini görürü ben denedim calisiyor

bu 1.cisi

Kod:
<!--Example drop down menu 1-->
<form name="form1">
    <select size="1" onChange="displaydesc(document.form1.select1, thetext1, 'textcontainer1')" style="background-color: #ffffd7" name="select1">
    <option value="http://www.javascriptkit.com" selected="selected">JavaScript Kit</option>
    <option value="http://freewarejava.com">Freewarejava.com</option>
    <option value="http://wired.com" target="newwin">Wired News</option>
    <option value="http://www.news.com">News.com</option>
    <option value="http://www.codingforums.com" target="newwin">Coding Forums</option>
    </select> <input onclick="jumptolink(document.form1.select1)" type="button" value="Go" /><br />
    &nbsp;
</form>


buda 2.si

Kod:
<!--Example drop down menu 2-->
<form name="form2">
    <select size="1" onChange="displaydesc(document.form2.select2, thetext2, 'textcontainer2')" style="background-color: #e3ffdf" name="select2">
    <option value="http://www.cnn.com" selected="selected">CNN</option>
    <option value="http://www.msnbc.com">MSNBC</option>
    <option value="http://news.bbc.co.uk">BBC News</option>
    <option value="http://www.theregister.com/">The Register</option>
    </select> <input onclick="jumptolink(document.form2.select2)" type="button" value="Go" /><br />
    &nbsp;
</form>
<!--IMPORTANT: Below script should always follow all of your HTML codes above, and never proceed them--><!--To be safe, just add below script at the end of your page--><script type="text/javascript">

/***********************************************
* Drop down menu w/ description- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
var thetext1=new Array()
thetext1[0]="Comprehensive JavaScript tutorials and over 400+ free scripts"
thetext1[1]="Direct link to hundreds of free Java applets online!"
thetext1[2]="Up to date news on the technology front"
thetext1[3]="News.com- The #1 technology News site."
thetext1[4]="Web Coding and development forums"

/// You may define additional text arrays if you have multiple drop downs:
var thetext2=new Array()
thetext2[0]="CNN- US and World News."
thetext2[1]="MSNBC- NBC News online."
thetext2[2]="BBC News- Updated every minute of every day."
thetext2[3]="TheRegister- Daily IT news."

// Now, see 2) below for final customization step

function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}

function jumptolink(what){
var selectedopt=what.options[what.selectedIndex]
if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value)
else
window.location=selectedopt.value
}

//2) Call function displaydesc() for each drop down menu you have on the page
//   This function displays the initial description for the selected menu item
//   displaydesc(name of select menu, name of corresponding text array, ID of SPAN container tag):
//   Important: Remove the calls not in use (ie: 2nd line below if there's only 1 menu on your page)

displaydesc(document.form1.select1, thetext1, 'textcontainer1')
displaydesc(document.form2.select2, thetext2, 'textcontainer2')

</script>
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu