nasiel som si script na scrolovanie sprav. ked som ho testoval tak isiel v pohode pod FF ale ked som ho uploadol na web tak ide iba pod IE a firefox ho nezobrazuje spravne - vsetky spravy da nakopu...
Kód:
<div id="tempholder"></div>
<script language="JavaScript" src="http://www.freedomtravelholidays.com/images/www.freedomtravelholidays.com/script/dhtmllib.js"></script>
<script language="JavaScript" src="http://www.freedomtravelholidays.com/images/www.freedomtravelholidays.com/script/scroller.js"></script>
<script language="JavaScript">
/*
Mike's DHTML scroller (By Mike Hall)
Last updated July 21st, 02' by Dynamic Drive for NS6 functionality
For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com
*/
//SET SCROLLER APPEARANCE AND MESSAGES
var myScroller1 = new Scroller(0, 0, 480, 16, 0, 2); //(xpos, ypos, width, height, border, padding)
myScroller1.setColors("#000000", "#E2E2E2", "#336699"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Verdana,Arial,Helvetica", 1);
myScroller1.addItem("<b>Freedom Travel & Manx Radio competition - <a href='http://www.freedomtravelholidays.com/news.phtml'>Freedom Travel Friday Frolic</a></b>");
myScroller1.addItem("<b>Any problem? - <a href='http://www.freedomtravelholidays.com/faq.phtml'>Frequently Asked Questions</a> or just call 01624 661234</b>");
myScroller1.addItem("Some inspiration on your next holiday <a href='http://www.freedomtravelholidays.com/holiday_like-bond.phtml'>Holiday like Bond</a>");
//SET SCROLLER PAUSE
myScroller1.setPause(2500); //set pause beteen msgs, in milliseconds
function runmikescroll() {
var layer;
var mikex, mikey;
// Locate placeholder layer so we can use it to position the scrollers.
layer = getLayer("placeholder");
mikex = getPageLeft(layer);
mikey = getPageTop(layer);
// Create the first scroller and position it.
myScroller1.create();
myScroller1.hide();
myScroller1.moveTo(mikex, mikey);
myScroller1.setzIndex(100);
myScroller1.show();
}
window.onload=runmikescroll
</script>
<div id="placeholder" style="position:relative; width:420px; height:20px;"> </div>
vedel by niekto pomoct?
mozete ho pozret tu:
http://www.freedomtravelholidays.com/
///update
este som zistil ze to robi len vtedy ked je v stranke. ked ten script spustim sam tak ide aj vo FF. no toto fakt neviem kde moze byt problem
////up
som to dal prec zo stranky lebo ten script robil asi 10 chyb kazdych 10 sekund.
nevie niekto o niecom presne takom len aby to fungovalo?