Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. starblood

    Can anyone help me convert this code into an ActionScript loop?

    OK - I have the reply. For archive purposes here it is: for(var i=1; i <=5;i++){ this["square"+i].attachMovie("sym5", "nn_clip", 0); }
  2. starblood

    Can anyone help me convert this code into an ActionScript loop?

    I cannot seem to get the syntax right for converting this into a loop - any help would be appreciated: square1.attachMovie("sym5", "nn_clip1", 0); square2.attachMovie("sym5", "nn_clip2", 0); square3.attachMovie("sym5", "nn_clip3", 0); square4.attachMovie("sym5", "nn_clip4", 0)...
  3. starblood

    Array Sort Problem Got Me Beat!

    Hi Feherke, Tried your code in Opera9, Netscape7, IE6, Safari. They all produced the same output as you did: number string number undefined
  4. starblood

    Array Sort Problem Got Me Beat!

    Hi Feherke, Just to let you know I checked your orginal code in FireFox3, and it did indeed output the correct order. However IE6, IE7, Opera9 and Netscape 7 didn't. So your suspicions about the browser implementation were correct. This has been an eyeopener for me, as I thought as long as...
  5. starblood

    Array Sort Problem Got Me Beat!

    Thanks tsuji, that certainly seems to output the array in the order I require. Much appreciated. And thanks once again to you Feherke.
  6. starblood

    Array Sort Problem Got Me Beat!

    Thanks Feherke for you reply and input. Unfortunately your code doesn't do the trick. <HTML> <HEAD> <HEAD> <BODY> <SCRIPT> var theArray = new Array(200812151000, 200812151315, 200812161000, 200812161315, 200812161930, 200812171000, 200812171315, 200812181000, 200812181315, 200812191000...
  7. starblood

    Array Sort Problem Got Me Beat!

    Hi All, This problem has gone beyond the realms of my programming knowledge. I have an array that I have ordered numerically: var data = new Array(200812151000, 200812151315, 200812161000, 200812161315, 200812161930, 200812171000, 200812171315, 200812181000, 200812181315, 200812191000...
  8. starblood

    Can the minimum height be set by javascript?

    Great tip - thanks very much.
  9. starblood

    Can the minimum height be set by javascript?

    Appreciated kaht. I did try 'minheight' but didn't factor the case sensitivity. Javascript can be so unforgiving. Thanks a lot!
  10. starblood

    Can the minimum height be set by javascript?

    I can set the height of my element by using this code: document.getElementById("container").style.height='100px' does anyone know the syntax to set the minimum height (if indeed it can be done)?
  11. starblood

    Enabling java?

    Then I suspect it is down to your syntax, because although you can turn Javascript off in a browser you cannot turn it off in Dreamweaver (by the way Javascript and Java are two different languages). Is this custom Javascript you are adding or a Dreamweaver behavior? Have you tried adding the...
  12. starblood

    Enabling java?

    Forget what it looks like, does the javascript work when you try it in a browser? If so, then surely you just need to change the colour formatting of your code to make it look 'undead': Edit => Preferenced => Code coloring => PHP
  13. starblood

    Dreamweaver template not updating relative link in javascript code?

    I've found a way to make it work via some javascript jiggery-pokery (parsing the URL to determine folder hierarchy and adapting the relative link in the javascript code accordingly).
  14. starblood

    Dreamweaver template not updating relative link in javascript code?

    I have relative links written into Javascript code. Am I right in thinking that they don't update with the rest of the relative links within the HTML page when made into a template and applied to pages? I've been trying for a good while and it doesn't seem to work (yet it works on Dreamweaver...
  15. starblood

    Picking a variable at random (without using arrays)

    Scripting is only a small part of using Flash whilst Actionscript is virtually the same as Javascript. Hence the reason I posted here.
  16. starblood

    Picking a variable at random (without using arrays)

    As predicted Actionscript didn't like the window collection method, but worked with the "eval" Tortoise and the hare j4606! Thanks to you all for helping out. Cheers!
  17. starblood

    new URL location after image loop

    This seems to do what you want except it leaps on the first turn of the last image. To overcome this just repeat the last image twice in your array. <html> <head> <SCRIPT> function ImageAnimator (imgName, imgURLs, spd) { this.id = ImageAnimator.cnt...
  18. starblood

    Picking a variable at random (without using arrays)

    Well it is destined for Actionscript in Flash so you never know I might end up using that "eval"! Thanks for the alternative j4606.
  19. starblood

    Picking a variable at random (without using arrays)

    Thanks cLFlaVA and kaht. Worked a dream. Much appreciated!
  20. starblood

    Picking a variable at random (without using arrays)

    If I have the following variables: var beatle1="paul"; var beatle2="john"; var beatle3="george"; var beatle4="ringo"; Is there a way of picking one of the names at random without incorporating the use of arrays in the code?

Part and Inventory Search

Back
Top