User Profile

Collapse

Profile Sidebar

Collapse
wyatt
wyatt
Last Activity: Feb 21 '08, 08:33 AM
Joined: Feb 18 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • The following should do what you're looking for:

    [CODE=javascript]
    var table = document.getEle mentById("table 1");
    var cells = table.getElemen tsByTagName("di v");

    table = document.getEle mentById("table 2");
    var cells2 = table.getElemen tsByTagName("di v");

    var cells = cells.concat(ce lls2);

    for (i = 0; i < cells.length; i++) {...
    See more | Go to post

    Leave a comment:


  • wyatt
    replied to SOS: Select box autochange script
    I believe that running setTimeout ends the current function. Instead, I suggest the following:

    [CODE=javascript]
    function roller(i) {
    var total = 3;
    var i = i : 0;
    roll(i);

    setTimeout("rol ler("+((i+1)%to tal)+")",3000);
    }
    [/CODE]

    Essentially, each time, the function 'roller' is run, a value 'i' is passed to it, which increases by one every...
    See more | Go to post

    Leave a comment:


  • If you want to read text from a file supplied by the user, you will need to use a server-side language, as it is beyond the capability of Javascript.

    If you're interested, I can provide you with PHP code which will accomplish this.
    See more | Go to post

    Leave a comment:


  • I'm not entirely sure, but I don't think that the createElement function can assign properties to tags, nor create multiple tags at once. I would instead do the following.

    [CODE=javascript]
    var div = document.create Element("div");
    var embed = document.create Element("embed" );
    embed.src = "http://willoffirechat. chatango.com/group";
    embed.bgcolor = "#FFFFFF";
    ......
    See more | Go to post

    Leave a comment:


  • wyatt
    replied to cross browser issues
    I'm not entirely sure I understand, but try this:
    [CODE=javascript]
    document.getEle mentById('ancho r').onmouseover = function() {
    //onmouseover code here
    }
    [/CODE]...
    See more | Go to post

    Leave a comment:


  • wyatt
    started a topic overflow:hidden bug (I think) in IE7

    overflow:hidden bug (I think) in IE7

    Hi,

    I have noted in IE7 that, when the body of a page is given the property overflow:hidden , it can still be scrolled by selecting some of the text on the page and, with the mouse button still down, moving the cursor below the bottom of the screen. Is there any way to prevent this? I'm not fussed if the solution requires javascript.

    You can see a demonstration of the problem at:
    http://www.cpcorporati on.com.au/test.htm...
    See more | Go to post
No activity results to display
Show More
Working...