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)...
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...
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...
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...
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)?
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...
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
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).
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...
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!
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...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.