Results 1 to 6 of 6

Thread: Crossbrowser Marque

  1. #1
    Join Date
    Aug 2006
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Crossbrowser Marque

    1) Script Title: Crossbrowser Marque

    2) Script URL (on DD): www.webs2impress.com/ehc

    3) Describe problem: I wish to insert some space at the end of the first period. I have tried adding   codes and also calling a white graphic in there and nothing works. How can I make it put space there?

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Which Crossbrowser Marquee script?

    Please provide a link.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Aug 2006
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by annasue View Post
    1) Script Title: Crossbrowser Marque

    2) Script URL (on DD): www.webs2impress.com/ehc

    3) Describe problem: I wish to insert some space at the end of the first period. I have tried adding   codes and also calling a white graphic in there and nothing works. How can I make it put space there?
    http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

  4. #4
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    </head>
    
    <body>
    <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 offset to leave a space between rotations
    var marqueeoffset=100;
    //Specify the marquee's width (in pixels)
    var marqueewidth="400px"
    //Specify the marquee's height
    var marqueeheight="30px"
    //Specify the marquee's marquee speed (larger is faster 1-10)
    var marqueespeed=2
    //configure background color:
    var marqueebgcolor="#FFFFFF"
    //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><font face="Arial" color="#FF0000"><b><font color=red>Keeping You Comfortable <em>INSIDE</em>...No Matter What the Temperature is <em>OUTSIDE</em>.  Call Us Today for a FREE Estimate!!------5% Discounts on Labor Rates to Seniors 65 or Better and Retired Military!!</b> </font></nobr>'
    ////NO NEED TO EDIT BELOW THIS LINE////////////
    
    var copyspeed=marqueespeed
    
    var pausespeed=(pauseit==0)? copyspeed: 0
    
    document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
    var actualwidth=''
    var cross_marquee, ns_marquee
    
    function populate(){
     cross_marquee=document.getElementById("iemarquee");
     cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
     cross_marquee.innerHTML=marqueecontent
     actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
     lefttime=setInterval("scrollmarquee()",20)
    }
    
    function scrollmarquee(){
     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)+(typeof(window['marqueeoffset'])=='number'?marqueeoffset:8)+"px"
     }
    }
    
    with (document){
     document.write('')
     write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden;background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed" >')
     write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
     write('</div>')
     document.write('')
    }
    
    window.onload=populate;
    
    </script>
    </body>
    
    </html>
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  5. #5
    Join Date
    Aug 2006
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I love your signature and you are right!

    Did you give me some info here? It just looks like you copied the code. I had inserted the hyphens to cause separation but really wanted some space(s).

  6. #6
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    see the code in red

    Code:
    var marqueecontent='<nobr><font face="Arial" color="#FF0000"><b><font color=red>Keeping You Comfortable <em>INSIDE</em>...No Matter What the Temperature is <em>OUTSIDE</em>.  Call Us Today for a FREE Estimate!!&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5% Discounts on Labor Rates to Seniors 65 or Better and Retired Military!!</b> </font></nobr>'
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Similar Threads

  1. Crossbrowser issues.
    By SCI_Intern in forum CSS
    Replies: 0
    Last Post: 07-26-2011, 05:23 PM
  2. Crossbrowser problem
    By Ratto84 in forum HTML
    Replies: 0
    Last Post: 05-19-2011, 10:44 AM
  3. importNode crossbrowser
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 0
    Last Post: 03-14-2008, 12:13 AM
  4. crossbrowser scripting
    By riptide in forum JavaScript
    Replies: 1
    Last Post: 05-18-2007, 06:13 PM
  5. Help with crossbrowser marquee
    By Dance10Looks10 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 08-20-2005, 04:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •