İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Sayfayı Durdurma kodu lazım acil

emreyilmaz

0
İyinet Üyesi
Katılım
26 Ağustos 2006
Mesajlar
108
Reaction score
0
Arkadaşlar

Sitemde frame için de bir yer açılıyor. Ben frame dışında sitemin başka bir yerine durdur yazıp ziyaretçinin bu durdur butonuna bastığında frameyi durdurmasını istiyorum. elinizde böyle bir kod varsa lütfen paylasşın.

Tüm sayfayı stop eden kodda olabilir.

şimdiden teşekkürler
 

timsah

0
İyinet Üyesi
Katılım
2 Kasım 2005
Mesajlar
447
Reaction score
0
Konum
İZMİR
Elimde bu kod var resimler icin kullaniyorum start diyince sirasiyla resimleri gosteriyo stop deyince istedigi resimde duruyo editlersen belki isine yarar.



<SCRIPT LANGUAGE="JavaScript">
var current = 0;
function next(){ // forward one image
if(document.formname.slide[current+1]){
document.images.show.src = document.formname.slide[current+1].value;
document.formname.slide.selectedIndex = ++current;}
else{first();}}

function previous(){ // back on image
if((current-1) >= 0){
document.images.show.src = document.formname.slide[current-1].value;
document.formname.slide.selectedIndex= --current;}
else{last();}}

function first(){ // jump to first image
current=0;
document.images.show.src = document.formname.slide[0].value;
document.formname.slide.selectedIndex=0;}

function last(){ // this is jump to last image
current=(document.formname.slide.length-1);
document.images.show.src = document.formname.slide[current].value;
document.formname.slide.selectedIndex=current;}

function ap(text){ // this controls the auto-play and/or auto-stop
document.formname.slidebutton.value=(text == "Stop") ? "Start" : "Stop";
rotate();}

function change(){ // this is for the pulldown menu
current=document.formname.slide.selectedIndex;
document.images.show.src = document.formname.slide[current].value;}

function rotate() {
if (document.formname.slidebutton.value == "Stop") {
current = (current == document.formname.slide.length-1) ? 0 : current+1;
document.images.show.src = document.formname.slide[current].value;
document.formname.slide.selectedIndex = current;
window.setTimeout("rotate()", 5000);}}
</SCRIPT>
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst