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 Chriss Miller 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: *

  • Users: starblood
  • Content: Threads
  • Order by date
  1. 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)...
  2. 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...
  3. 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)?
  4. 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...
  5. 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?
  6. starblood

    actionscript syntax question

    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"?
  7. starblood

    syntax question - passing variable via function?

    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 }...
  8. starblood

    Repeating a function whilst mouse button is pressed?

    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>...
  9. starblood

    Syntax Question regarding carriage returns?

    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...
  10. starblood

    Move to 'Hit' state of button via ActionScript?

    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.
  11. starblood

    RegExp - Anyone translate from Javascript to ASP (VBScript)?

    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...
  12. starblood

    syntax question?

    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' }
  13. starblood

    CSS: Multiple Colours on single link - with hover

    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}...
  14. starblood

    Event change of selectedIndex works for numbers but not words?

    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...
  15. starblood

    actionscript syntax question

    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 &quot;14&quot; in the path is replaced with the random number &quot;PickClip&quot;?
  16. starblood

    page-break-after: avoid - anyone got it to work?

    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...
  17. starblood

    Windows XP and playing audio CD's

    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...
  18. starblood

    transfer nbtstat info into asp variable?

    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!
  19. starblood

    Profanity filter in chat application help!

    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, &quot;bugger&quot;, &quot;b****er&quot;) msgLine=Replace(msgline, &quot;swine&quot;, &quot;sw**ne&quot;) .......but obviously with worse words...
  20. starblood

    This code works in IE4 but not IE5.5 - Why?

    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...

Part and Inventory Search

Back
Top