SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need assistance from users running Windows OS

    Hi, I've been playing with adding the catfish code from the tutorial here to a political blog for a newsfeed ticker and all seems fine in FF on Linux and Windows machines, I've had a few friends check it in IE on Windows for me and 1 of them had a problem, he said his vertical scrollbar disappeared on the page. Nobody else had that problem, even with the same versions of Windows and IE so I'm thinking it's on his end and not the code. I just want to be sure.

    If you're running Windows and IE I'd really appreciate if you could take a quick glance at the page and let me know if you have any troubles with it or not. You should see a stationary, burgandy strip across the bottom of the screen with news headlines in it and (I hope) have a vertical scrollbar.

    The page URL is: www.pbnv.com

    Thanks,
    Scott

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Win XP Pro, IE6 - I get the news scroller but my vertical scrollbar is missing.

    I also have a JS error.

  3. #3
    SitePoint Member
    Join Date
    May 2005
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Buddy, I guess it is something in the coding then. It must be in the catfish.js but I can't see it:

    Code:
    // JavaScript Document
    
    function wrapFish() {
    	var catfish = document.getElementById('catfish');
    	var subelements = [];
    	for (var i = 0; i < document.body.childNodes.length; i++) {
     		subelements[i] = document.body.childNodes[i];
    	}
    
    	var zip = document.createElement('div');    // Create the outer-most div (zip)
    	zip.id = 'zip';                      // call it zip
    
    	for (var i = 0; i < subelements.length; i++) {
    	zip.appendChild(subelements[i]); 
    	}
    	document.body.appendChild(zip); // add the major div
    	document.body.appendChild(catfish); // add the catfish after the zip
    }
    
    addLoadEvent(function() {
    	wrapFish();
    });
    Thanks again,
    Scott

  4. #4
    SitePoint Member
    Join Date
    May 2005
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I figured it out, it wasn't the code but rather where in the head I had called the catfish.js from. For whatever reason, calling it before another script in my page head caused the error. I moved the call to the end of my head and it appears to have fixed the problem.

    Thanks again,
    Scott


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
  •