chanlenging quesuon: ff ie, marquee and other stuff- neeu guys asap!!

Discussion in 'JavaScript' started by progfrog, Apr 13, 2008.

  1. #1
    Hi everyone!
    there is something weird going on with my Marquee fubction: it gose well on ff but it doesn't show the last cell of the array, and on the other hand - in ee it shows the whola array but it doesn't do the <br> between the arrays cells- what is wrong??



    here is the code:


    
    
    <head>
        <title>MyNews</title>
    </head>
    <script language="JavaScript1.2">
    //Specify the marquee's width (in pixels)
    var marqueewidth="165px"
    //Specify the marquee's height
    var marqueeheight="145"
    //Specify the marquee's marquee speed (larger is faster 1-10)
    var marqueespeed=4
    var myNews = new Array();
    myNews[0] = "הדייר סטרייטס הוציאו אלבום זהב";
    myNews[1] = "פינק פלויד במופע איחוד משותף!";
    myNews[2] = "להקת קולדפליי מגיעה באוגוגסט 2008 לגני התערוכה, <br> יחממו : אביב גפןוהתעויוט";
    
    for (i=0;i< myNews.length;i++)
    
    {
     var gap = "<br/>";
     var marqueecontents = myNews[i] + gap ;
    
    
    document.write('<marquee direction="up" onmouseover="this.stop();" onmouseout="this.start();" scrollAmount='+marqueespeed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
    
    }
    
    </script>
    
    
    Bye & Thanx 
    dieing to hear from u alll!!:)
    
    
    
    
    
    
    
    
    
    
    
    
    <body>
    
    
    
    
    
    
    </body>
    </html>
    
    
    
    
    
    
    HTML:
     
    progfrog, Apr 13, 2008 IP