<script language="JavaScript1.2"> /* Cross browser Marquee script- Š Dynamic Drive (www.dynamicdrive.com) For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com Credit MUST stay intact */ //Specify the marquee's width (in pixels) var marqueewidth="400px" //Specify the marquee's height var marqueeheight="16px" //Specify the marquee's marquee speed (larger is faster 1-10) var marqueespeed=2 //configure background color: var marqueebgcolor="#DEFDD9" //Pause marquee onMousever (0=no. 1=yes)? var pauseit=1 //Specify the marquee's content (don't delete <nobr> tag) //Keep all content on ONE line, and backslash any single quotations (ie: that's great): var marqueecontent='<nobr><span class="bluetext">Artykuły:</span><span class="small_text"> <a href="index.php?id=art&topic=93">iPod nano</a> :: <a href="index.php?id=art&topic=92">Actions/Akcje w Photoshop</a> :: <a href="index.php?id=art&topic=91">Śnieg - xmas cz.2</a> :: <a href="index.php?id=art&topic=90">Lampki choinkowe - xmas cz.1</a> :: <a href="index.php?id=art&topic=89">Droga mleczna</a> :: <a href="index.php?id=art&topic=88">Macki</a> :: <a href="index.php?id=art&topic=87">Hue/Saturation</a> :: <a href="index.php?id=art&topic=85">Taśma klejąca</a> :: <a href="index.php?id=art&topic=84">Przycisk - mac style</a> :: <a href="index.php?id=art&topic=82">Znaczek</a> :: <a href="index.php?id=art&topic=81">Zniszczony text</a> :: <a href="index.php?id=art&topic=80">Kanał RSS ze skryptu PsNews</a> :: <a href="index.php?id=art&topic=79">Redukowanie członów hosta</a> :: <a href="index.php?id=art&topic=78">Lustrzane odbicie</a> :: <a href="index.php?id=art&topic=77">Metal</a> :: </span><span class="bluetext">Download:</span><span class="small_text"> <a href="index.php?id=download&file=139">Opera 7.54u2 PL</a> :: <a href="index.php?id=download&file=138"></a> :: <a href="index.php?id=download&file=137">Zegarek</a> :: <a href="index.php?id=download&file=135">base 02 - czcionka</a> :: <a href="index.php?id=download&file=134">FeedDemon - Trial</a> :: <a href="index.php?id=download&file=133">php 4.3.9RC3 - tar.gz</a> :: <a href="index.php?id=download&file=132">php 4.3.9RC3 - .tar.bz2</a> :: <a href="index.php?id=download&file=131">php 4.3.9RC3 - Windows</a> :: <a href="index.php?id=download&file=130">15 Numer magazynu @t</a> :: <a href="index.php?id=download&file=129">Krasnal Serv 2.7</a> :: <a href="index.php?id=download&file=126">Mozilla 1.6 Beta PL</a> :: <a href="index.php?id=download&file=125">Netscape Navigator 7</a> :: <a href="index.php?id=download&file=123">Cliff's Really Nifty Guestbook</a> :: <a href="index.php?id=download&file=122">AdControl</a> :: <a href="index.php?id=download&file=121">newsPHP</a> :: <a href="index.php?id=download&file=120">Sonic</a> :: <a href="index.php?id=download&file=119">Orange abstract</a> :: <a href="index.php?id=download&file=117">Zestaw- Głośniki</a> :: <a href="index.php?id=download&file=116">Portal muzyczny</a> :: <a href="index.php?id=download&file=115">Manga layout</a> :: <a href="index.php?id=download&file=114">Kurs HTML Off-Line</a> :: <a href="index.php?id=download&file=113">Planeta Flash</a> :: <a href="index.php?id=download&file=112">Kosmos Flash</a> :: <a href="index.php?id=download&file=111">Kursor Flash</a> :: <a href="index.php?id=download&file=110">Tabelki Flash</a> :: </span></nobr>' ////NO NEED TO EDIT BELOW THIS LINE//////////// marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS var copyspeed=marqueespeed var pausespeed=(pauseit==0)? copyspeed: 0 var iedom=document.all||document.getElementById if (iedom) var actualwidth='' var cross_marquee, ns_marquee function populate(){ if (iedom){ cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee cross_marquee.style.left=parseInt(marqueewidth)+8+"px" cross_marquee.innerHTML=marqueecontent actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth } else if (document.layers){ ns_marquee=document.ns_marquee.document.ns_marquee2 ns_marquee.left=parseInt(marqueewidth)+8 ns_marquee.document.write(marqueecontent) ns_marquee.document.close() actualwidth=ns_marquee.document.width } lefttime=setInterval("scrollmarquee()",20) } window.onload=populate function scrollmarquee(){ if (iedom){ if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px" else cross_marquee.style.left=parseInt(marqueewidth)+8+"px" } else if (document.layers){ if (ns_marquee.left>(actualwidth*(-1)+8)) ns_marquee.left-=copyspeed else ns_marquee.left=parseInt(marqueewidth)+8 } } if (iedom||document.layers){ with (document){ if (iedom){ write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">') write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">') } else if (document.layers){ write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">') write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>') write('</ilayer>') } } } </script>
i drugi:
<script TYPE="text/javascript"> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; function preloadImages() { if (document.images) { projekt_caly_gif_01_projekt_caly_gif_03_over = newImage("images/projekt_caly-gif_01-projekt.gif"); projekt_caly_gif_02_projekt_caly_gif_03_over = newImage("images/projekt_caly-gif_02-projekt.gif"); projekt_caly_gif_02_projekt_caly_gif_04_over = newImage("images/projekt_caly-gif_02-proj-05.gif"); projekt_caly_gif_02_projekt_caly_gif_05_over = newImage("images/projekt_caly-gif_02-proj-06.gif"); projekt_caly_gif_03_over = newImage("images/projekt_caly-gif_03-over.gif"); projekt_caly_gif_04_projekt_caly_gif_03_over = newImage("images/projekt_caly-gif_04-projekt.gif"); projekt_caly_gif_05_projekt_caly_gif_03_over = newImage("images/projekt_caly-gif_05-projekt.gif"); projekt_caly_gif_05_projekt_caly_gif_04_over = newImage("images/projekt_caly-gif_05-proj-13.gif"); projekt_caly_gif_06_projekt_caly_gif_03_over = newImage("images/projekt_caly-gif_06-projekt.gif"); projekt_caly_gif_06_projekt_caly_gif_04_over = newImage("images/projekt_caly-gif_06-proj-16.gif"); projekt_caly_gif_06_projekt_caly_gif_05_over = newImage("images/projekt_caly-gif_06-proj-17.gif"); preloadFlag = true; } } // --> </SCRIPT>