i-tech-inn Posted September 12, 2007 Share Posted September 12, 2007 <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><script language="JavaScript"> var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array() KW_ARI[KW_ARI.length]='menu/index1.jpg'; KW_ARI[KW_ARI.length]='menu/index2.jpg'; KW_ARI[KW_ARI.length]='menu/index3.jpg'; KW_ARI[KW_ARI.length]='menu/index4.jpg'; KW_ARI[KW_ARI.length]='menu/index5.jpg'; KW_ARI[KW_ARI.length]='menu/index6.jpg'; KW_ARI[KW_ARI.length]='menu/index7.jpg'; KW_ARI[KW_ARI.length]='menu/index8.jpg'; KW_ARI[KW_ARI.length]='menu/index9.jpg'; KW_ARI[KW_ARI.length]='menu/index10.jpg'; KW_ARI[KW_ARI.length]='menu/index11.jpg'; KW_ARI[KW_ARI.length]='menu/index12.jpg'; j=parseInt(Math.random()*KW_ARI.length); j=(isNaN(j))?0:j; if (KW_ARI[j].indexOf('?')==-1) { document.write("<img src='"+KW_ARI[j]+"'>"); } else { nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&'); for(var i=0;i<nvp.length;i++) { sub=nvp[i].split('='); switch(sub[0]) { case 'link': l="<a href='"+unescape(sub[1])+"'>"; p="</a>"; break; case 'target': q=" target='"+unescape(sub[1])+"'"; break; default: m+=" "+sub[0]+"='"+unescape(sub[1])+"'"; break; } } z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):""; z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p; document.write(z); } </script></td> </tr></table> <br><Center><Font Face='Wingdings' Size='7' Color = 'FFFFFF'><b> µ </b></Font></Center> [/CODE]Menu/index1.jpg kısmındaki resimleri değiştirebilir , KW_ARI[KW_ARI.length]='menu/index12.jpg'; kısmı çoğaltılarak istenilen sayıda resim eklenebilir. sayfa her yenilendiğinde yada başka linklere gidildiğinde resimler değişir.Sonra arzunuza bağlı olarak sisteminizin istediğiniz yerine include edebilirsiniz Saygılarımla... Link to comment Share on other sites More sharing options...
cumman Posted September 12, 2007 Share Posted September 12, 2007 Arkadaşlar bunu bütün sistemlerde kullanabilir. Sadece asp diye akıllarına gelmesin. Link to comment Share on other sites More sharing options...
i-tech-inn Posted September 12, 2007 Author Share Posted September 12, 2007 evet haklısın. başlığı son anda silmiştim ama açıklamayı değiştirmeyi unutmuşum. sadece bir kaç satır script . Link to comment Share on other sites More sharing options...
skyman Posted September 12, 2007 Share Posted September 12, 2007 Birkaç satır javascript.. Link to comment Share on other sites More sharing options...
ugurnaz Posted July 7, 2009 Share Posted July 7, 2009 teşekkürler tam da bu scripti arıyorum... Link to comment Share on other sites More sharing options...
wmismail Posted July 8, 2009 Share Posted July 8, 2009 Genelde asp ile randomize ile yaptığımız için JS kullanmıyorduk bu alanda Farklılık olur Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.