PDA

View Full Version : Crossbrowser Marque



annasue
12-19-2012, 04:04 PM
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?

Beverleyh
12-19-2012, 04:08 PM
Which Crossbrowser Marquee script?

Please provide a link.

annasue
12-19-2012, 04:47 PM
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

vwphillips
12-19-2012, 05:04 PM
<!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>

annasue
12-19-2012, 11:05 PM
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).

vwphillips
12-20-2012, 08:37 AM
see the code in red


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>'