PDA

View Full Version : Help with :: Cross Browser marquee



Tambo1973
11-25-2010, 06:51 AM
1) Script Title: :: Cross Browser marquee

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

3) Describe problem: Hi there. Can someone please assist me with getting this marquee to sit in the centre of the page rather than to the left? Also, how di I change the font type and size? I understand a little bit about coding, but bot enough I'm afraid to fix these issues. Any assistance will be greatly appreciated. Tambo

Nile
11-25-2010, 02:36 PM
Instead of that, use this: http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm. To change font, align, and size, in the following code when you call the crawler add the highlighted:


marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '5px',
'width': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300',
'size': '20pt',
'text-align': 'center',
'font-family': 'arial'
},
inc: 8, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 4,
neutral: 150,
savedirection: true
});


Please tell me if you do not understand, good luck!