www.webdeveloper.com

Search:

Type: Posts; User: Arty Effem

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    2,897

    I threw this together, but only Safari (XP)...

    I threw this together, but only Safari (XP) supports it. Opera 10B and the latest Firefox don't seem to support the tag. XP has the named wavs or substitute your own:


    <!DOCTYPE HTML>
    <html>...
  2. toResize is an array or collection, whose...

    toResize is an array or collection, whose elements must be addressed individually using a loop.
  3. Replies
    3
    Views
    1,342

    I can't see immediately why that didn't work, but...

    I can't see immediately why that didn't work, but I made a quick example that demonstrates the principle. You should should be able to adapt it.
    http://scripterlative.com/test/loading.htm

    To...
  4. Replies
    3
    Views
    1,342

    In JavaScript, event names are all lowercase. ...

    In JavaScript, event names are all lowercase.

    This isn't tested, but try swapping this line

    for
    newpic.onload = ( function(n){return updatepic(n)} )(picnum);
  5. Replies
    2
    Views
    3,983

    This function allows one quantity to become...

    This function allows one quantity to become negative.
  6. Where do you define field?

    Where do you define field?
  7. Test for a specific index of 0, instead of !=-1.

    Test for a specific index of 0, instead of !=-1.
  8. Replies
    2
    Views
    867

    Presumably you're trying to get a reference to...

    Presumably you're trying to get a reference to the first child element of the first <h3> element. elementPosition requires an object reference not a nodeName.
  9. Replies
    5
    Views
    2,168

    How do you intend to identify a 'very poor'...

    How do you intend to identify a 'very poor' browser without the risk of slandering your users?You'd probably want to assign that rule to the <body> tag. Just give it an id and execute:
    ...
  10. Replies
    5
    Views
    2,168

    Leaving aside the advisability of such a page, I...

    Leaving aside the advisability of such a page, I don't see any difference - it's displaying both divs when there's no cookie, and neither when there is. Exactly what you've coded.
  11. I suspect I know what the problem is, but you...

    I suspect I know what the problem is, but you need to confirm that there are no messages showing in the error console.
    FireFox > Tools > Error console

    Translation?
  12. Replies
    4
    Views
    811

    The answer (as usual) involves reading the error...

    The answer (as usual) involves reading the error console, which is telling you that you're not allowed to do what you're attempting. You'll have to swap the element with another.
  13. Replies
    4
    Views
    811

    You need to show more code, at the very minimum...

    You need to show more code, at the very minimum all the functions and elements referenced, ideally a runnable demonstration page.
  14. Replies
    3
    Views
    813

    function showCounty(terSize,terName) { ...

    function showCounty(terSize,terName)
    {
    for(var i=0; i<terSize; i++)
    {
    hide = document.getElementById("alabamacounty["+i+"]");
    hide.style.visibility = "hidden";
    }
    }
    ...
  15. Replies
    5
    Views
    1,094

    Give the script tag an id:

    Give the script tag an id:

    <div id="qtbg"><script language="javascript" type="text/javascript" id='scriptTagId'>
    Then add this line:

    function switchTo(theid)
    {
    var ...
  16. Thread: Array Index

    by Arty Effem
    Replies
    9
    Views
    929

    var theIndex=myArray.indexFromValue("Scott");

    var theIndex=myArray.indexFromValue("Scott");
  17. Thread: Array Index

    by Arty Effem
    Replies
    9
    Views
    929

    Yes - you've just explained it. ...

    Yes - you've just explained it.

    Array.prototype.indexFromValue=function( v )
    {
    for(var i=0; i<this.length && this[i]!=v; i++)
    ;
    return i == this.length ? -1 : i;
    }
  18. Replies
    5
    Views
    1,094

    I think the string that replaces the script...

    I think the string that replaces the script element is still being treated as code. Try removing the <script> element before replacing it.
    Something like:
    ...
  19. Replies
    2
    Views
    1,015

    As a text book it would probably make a good...

    As a text book it would probably make a good paperweight.
    Maybe that wasn't the complete example, but the function is referring to two non-existent objects.


    function toggleVis(currElem)
    {
    ...
  20. Could you clarify exactly what you mean by...

    Could you clarify exactly what you mean by 'repeat'?
    If you mean 3 contiguous duplicate characters then you can use the expression from mrhoo. If you mean 3 duplicate characters in any position, you...
  21. Replies
    2
    Views
    710

    Yes it does but it looks rather involved to...

    Yes it does but it looks rather involved to set-up. Try SoftScroll, which isn't.
  22. Replies
    1
    Views
    632

    This should do it. To guard against delays, it...

    This should do it. To guard against delays, it uses a timeout to display the content regardless.


    <script type='text/javascript'>

    /*** Document 'Preloader'

    Outside of the your main...
  23. Replies
    1
    Views
    657

    So what do you have so far, and do you need...

    So what do you have so far, and do you need unique colours?
  24. Replies
    1
    Views
    588

    Can't you just use the Tab key? || Even...

    Can't you just use the Tab key?
    |<-
    ->|
    Even Safari supports it.
  25. It means that document.minibus-hire.cost.value...

    It means that document.minibus-hire.cost.value cannot be assigned a value. The - is making it look like a subtraction expression rather than presumably an element in a form named 'minibus-hire'. The...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles