Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
ticker
Topic Started: Sep 8 2008, 09:12 AM (1,620 Views)
toplad74
Member
 *   *  
hi sorry to repost i have this code for my ticker
how can i make letters larger and add colours to
thanks

<marquee direction="across" height="50" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()" >
<p>Your information here</a></p>
</marquee>

ticker at top of page

http://z10.invisionfree.com/fifaleague09/index.php?act=idx
Edited by toplad74, Sep 8 2008, 09:23 AM.
Offline Profile Quote Post Goto Top
 
Phlip (S)
Member
 *   *   *  
Code:
 
<marquee direction="across" height="50" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()" >
<p><font size=10><font color=blue>Your information here</font></font></a></p>
</marquee>

Increase/decrease the 10, depending on how big or small you'd like the text to be. To add colours, change the blue to your chosen colour. :)
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
 *   *   *   *   *   *  
Eww, never use font.

Code: HTML
 
<marquee direction="right" height="50" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()" >
<p style="color:blue;font-size:10px;">Your information here</p>
</marquee>
Edited by Viral., Sep 8 2008, 03:15 PM.
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
thanks a lot
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
got it any way of making it scroll so it wont end and will be continuous as it takes the whole page to come on again


thanks for your help
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
any ideas anyone
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
hi if any one knows how to do this or they know if you cant please let me know

thanks
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
If you wanted the marquee to perform a continuous cycle, you would need to use JavaScript.
Quote:
 
<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
Modified by jscheuer1 for continuous content. Credit MUST stay intact
*/

var marqueewidth="100%"
var marqueeheight="50px"
var marqueespeed=2
var initPause=0
var full=0
var marqueebgcolor="#FFF"
var pauseit=1
var marqueecontent='<nobr>Custom Marquee Text</nobr>'

////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
var actualwidth=''
var cross_marquee, cross_marquee2, ns_marquee
function populate(){
if (iedom){
var initFill=(full==1)? '8px' : parseInt(marqueewidth)+8+"px"
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=initFill
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee2.innerHTML=cross_marquee.innerHTML=marqueecontent
cross_marquee2.style.left=(parseInt(cross_marquee.style.left)+actualwidth+8)+"px" //indicates following #1
}
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
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)',initPause)
}
window.onload=populate

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)<(actualwidth*(-1)+8))
cross_marquee.style.left=(parseInt(cross_marquee2.style.left)+actualwidth+8)+"px"
if (parseInt(cross_marquee2.style.left)<(actualwidth*(-1)+8))
cross_marquee2.style.left=(parseInt(cross_marquee.style.left)+actualwidth+8)+"px"
cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed+"px"
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"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){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:3px;display:inline;"></div>')
write('<div id="iemarquee2" style="position:absolute;left:0px;top:3px;display:inline;"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=3 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
after no need to edit below this line do i add that to my header and body and do i add all the text above noneed to edit to javascript

thanks
Edited by toplad74, Sep 10 2008, 02:30 PM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
Yes, you may add that script to the Header & Body or Footer wrapper, depending on where you wish to have that information display.
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
thx do i add all of the text above no need to edit to javascript and only update java for my settings
Edited by toplad74, Sep 10 2008, 02:33 PM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
Yes, the whole script needs to be added to the specified area in which you want to display that information.
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
thx ill give it a go now
Offline Profile Quote Post Goto Top
 
toplad74
Member
 *   *  
doesnt work please see my site

http://z10.invisionfree.com/fifaleague09/index.php?act=idx

put top code in javascript

and bottom code in header and body under navigation
have not edited it at all yet

any help

thx
Edited by toplad74, Sep 10 2008, 05:58 PM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
You cannot split the code up into multiples. You must copy and paste the whole script and place it where you would like to have that information display.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · zIFBoards Support & Galleries · Next Topic »
Add Reply