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 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)?
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...
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?
If I have two lines of code:
PickClip = Math.round(Math.random()*5) + 1;
_root.countingvalue = /swing5:variable_counter;
The second line works as it is but how do I change the syntax so that "5" in the path is replaced with the random number "PickClip"?
I have a line of script that works:
document.getElementById('layername').filters.alpha.opacity = 0;
What I would like to do is pass the variable via a function. Something like this:
function DoIt(nameoflayer){
document.getElementById(nameoflayer).filters.alpha.opacity = 0
}...
I have function that will execute a 3% zoom on a picture (java applet) when the OnClick is pressed.
Is there a way to get the function to repeat continuously if the mouse button remains pressed?
<SCRIPT LANGUAGE="JavaScript">
function ZoomInApplet()
{
document.ptviewer.ZoomIn()
}
</script>...
I have a line of code that replaces <br> tags with the word hello in some copy:
NewValue=whichfield.value.replace(/<br>/gi, "hello");
What I would like is for the <br> tags to be replaced with a carriage return instead. Can't seem to find the right syntax.
The code if for an Intranet, so no...
Is is possible to move frames in a button symbol with ActionScript rather than rolling over the button itself?
For example could you achieve the rollover ("Over") state on a button by moving your mouse over another unassociated graphic?
Code snippets would be appreciated if it is possible.
I have a Javascript Regular Expression working to locate two or more consecutive '<BR>' tags in a string. Trouble is (for various reasons) it isn't a great solution to do it client side - can anyone translate this to work in ASP (VBScript) - I ahve had a go and can't get it to work:
var...
Can anyone give me the syntax for replacing the X in the loop statement below for the variable i?
for(var i = 0 ; i <= 4 ; i++)
{
buttonX.src='images/n-buttX.gif'
}
Is it possible to have one link split into different colours, and retain a hover function?
This snippet works with the colours, but the hover only affects the underline of the link:
<style type="text/css">
.white{font-family:arial;color:#cccccc}
.blue{font-family:arial;color:#0000ff}...
The sample below works - please note the bold OnClick event.
I cannot seem to get the the SelectedValue to change to 'NumberOne' with an onClick event? (possibly a syntax question because substituting 'NumberOne' for '1' in the line doesn't work)
Thanks in advance for your help!
<form...
If I have two lines of code:
PickClip = random(15);
_parent.lett_14.scroll_14.text_14=_root.v7;
how do I change the syntax on the 2nd line so that "14" in the path is replaced with the random number "PickClip"?
I'd like to restrict page breaks when printing a webpage. I can get the page-break-after:always to work, but as soon as I substitute always for avoid in the code, it fails. MSDN says it should be an 'empty string' instead of always but I can't seem to get this to work either...
How do you get your audio CD's playing in the computer CD player with your headphones plugged into the player and not the sound card?
I've just updated my work machine from Windows 98 to Windows XP and now everytime I put in a audio CD it autostarts playing through my media player but can only...
I've been working on this for ages and can't seem to find any solution; can you transfer nbstat info into a ASP variable?
Any help greatly appreciated!
I'm running an ASP chat application on the site I administer and it has a profanity filter that works along the the line of:
msgLine=Replace(msgline, "bugger", "b****er")
msgLine=Replace(msgline, "swine", "sw**ne")
.......but obviously with worse words...
I have a webcam page that has an JS refresh of the image. It pre-loads the image into the cache whilst the timer countdowns and then swaps when it hits zero.
Unfortunately this preload function has stopped working on IE5.5/6 even though it works on Netscape and IE4. I think I've isolated the...
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.