Results 1 to 4 of 4

Thread: Mike's DHTML scroller NOT Working

  1. #1
    Join Date
    May 2005
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mike's DHTML scroller NOT Working

    1) Script Title: Mike's DHTML scroller

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

    3) Describe problem: Followed all - not working.

    Code:
    <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>
    Last edited by jscheuer1; 07-11-2012 at 06:39 AM. Reason: Format

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    Please post the url of the problem code.
    Thanks,

    Bud

  3. #3
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    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.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yeah, works fine with the scripts in the same folder:

    http://home.comcast.net/~jscheuer1/s...l/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.
    Last edited by jscheuer1; 07-11-2012 at 10:29 AM. Reason: add "But . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •