PDA

View Full Version : Mike's DHTML scroller NOT Working



fmv503
07-10-2012, 08:31 PM
1) Script Title: Mike's DHTML scroller

2) Script URL: http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm

3) Describe problem: Followed all - not working. :confused:


<div id="tempholder"></div>
<script language="JavaScript" src="dhtmllib.js"></script>
<script language="JavaScript" src="scroller.js"></script>
<script language="JavaScript">

/*
Mike's DHTML scroller (By Mike Hall)
Last updated July 21st, 02' by Dynamic Drive for NS6 functionality
For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com
*/

//SET SCROLLER APPEARANCE AND MESSAGES
var myScroller1 = new Scroller(0, 0, 480, 32, 1, 5); //(xpos, ypos, width, height, border, padding)
myScroller1.setColors("#006600", "#ccffcc", "#009900"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Verdana,Arial,Helvetica", 2);
myScroller1.addItem("<b>ATT 2012 JULY/AUGUST SPECIAL</b>");
myScroller1.addItem("<b>10&quot; OFF PLX/BMRs and ALL ATT TARGETS</b>");
myScroller1.addItem("<b>Coupon Codes: 12-bmr &amp; 12-targets</b>");
myScroller1.addItem("<b>Order Online or Call 1-888-320-7011</b>");

//SET SCROLLER PAUSE
myScroller1.setPause(2500); //set pause beteen msgs, in milliseconds

function runmikescroll() {

var layer;
var mikex, mikey;

// Locate placeholder layer so we can use it to position the scrollers.

layer = getLayer("placeholder");
mikex = getPageLeft(layer);
mikey = getPageTop(layer);

// Create the first scroller and position it.

myScroller1.create();
myScroller1.hide();
myScroller1.moveTo(mikex, mikey);
myScroller1.setzIndex(100);
myScroller1.show();
}

window.onload=runmikescroll
</script>
<div id="placeholder" style="position:relative; width:420px; height:32px;"> </div>

ajfmrf
07-10-2012, 10:53 PM
Please post the url of the problem code.

bernie1227
07-11-2012, 06:27 AM
In what capacity is it not working? One problem I can think of is that you didn't download the javascript libraries and put them in the right directory.

jscheuer1
07-11-2012, 07:14 AM
Yeah, works fine with the scripts in the same folder:

http://home.comcast.net/~jscheuer1/side/mikes-scroll/mike_2_h.htm

But there could be some other problem or problems in addition to or in place of missing files.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.