Help JS (random tip)

I am trying to generate a random trick when I click on 'See next tip' below...

but can't make it work:)

I run the JavaScript code for the button.

From the code and variables, you see something wrong?

He scored correct in another thread Lieve. He has been using the script tags and never call to the function that she was supposed to be external.

My revised so much code your anonymous function seem to work well.

Tags: Adobe Captivate

Similar Questions

  • Help: Contacts randomly removed from my list

    Contacts delete randomly my contacts from time to time and when I log out of Skype...

    I contacted the live chat and they told me to change my password, then they have accessed remotely in and na not at all, helpp then disappeared.

    Today I contacted one who told me to change my password, I told them that did not help

    then they said now of "wanting to change your password"

    So, those who do not work. Help, please.

    Topic/title edited for clarity.

    Maybe your local Skype contacts database is corrupted.

    Try Skype with my tool cleaning data: http://www16.zippyshare.com/v/68099559/file.html

  • Need help with replacement tips Sony hybrid

    Hey all,.

    Please first post here, so I'm sorry if I posted in the wrong section. This month I ordered the spare Atria hybrid Sony EPEX10A/BLK on Amazon.com. While he was trying to get a great tip on my Sennheiser CX500s, broken the coloured part. Now, I have only a great tip, which is currently normal the CX500 very well. I really need another great tip, and I don't know what to do. I thought that the best option would be to contact the Sony Support and ask for a replacement (I guess my warranty is still in effect, dunno anything), but I don't know how. I went on this website (http://esupport.sony.com/US/perl/contact-land.pl) and support selected, and since I could not find my product in the list, I typed in what I thought was the model number, and it came with no result. I have no idea where the model number is on the packaging (which I still have).

    Can someone please help me to get a replacement? Other than the broken tip, what are the best advice I've had , and I would really like to continue to use.

    Thanks for the help!

    Contact Sony parts and accessories - they have a different number of Support technique Sony and should be able to find the right part for you - details on the following link:

    https://servicesales.sel.Sony.com/ecom/... index.jsp

  • Help with random lines and its

    What I'm trying to make, is that the lines appear in various random places but they keep appearing in the same place without worrying.  Someone at - it a way to solve this problem?  As is - this does anyone have an idea on how to put a timer so after two minutes, all the lines disappear?  Thank you very much for the help.

    import flash.events.ActivityEvent;
    import flash.events.StatusEvent;
    import flash.media.Microphone;
    the line below code
    var container1:Sprite = new Sprite();
    var container2:Sprite = new Sprite();
    var container3:Sprite = new Sprite();
    var container4:Sprite = new Sprite();
    var container5:Sprite = new Sprite();
    random coordinates for container1
    var corcon1x:Number = Math.round (Math.random () * 600);
    var corcon1y:Number = Math.round (Math.random () * 600);
    var corcon2x:Number = Math.round (Math.random () * 600);
    var corcon2y:Number = Math.round (Math.random () * 600);
    random coordinates for container2
    var corcon3x:Number = Math.round (Math.random () * 600);
    var corcon3y:Number = Math.round (Math.random () * 600);
    var corcon4x:Number = Math.round (Math.random () * 600);
    var corcon4y:Number = Math.round (Math.random () * 600);
    random coordinates for 3
    var corcon5x:Number = Math.round (Math.random () * 600);
    var corcon5y:Number = Math.round (Math.random () * 600);
    var corcon6x:Number = Math.round (Math.random () * 600);
    var corcon6y:Number = Math.round (Math.random () * 600);
    random coordinates for container4
    var corcon7x:Number = Math.round (Math.random () * 600);
    var corcon7y:Number = Math.round (Math.random () * 600);
    var corcon8x:Number = Math.round (Math.random () * 600);
    var corcon8y:Number = Math.round (Math.random () * 600);
    random coordinates for container5
    var corcon9x:Number = Math.round (Math.random () * 600);
    var corcon9y:Number = Math.round (Math.random () * 600);
    var corcon10x:Number = Math.round (Math.random () * 600);
    var corcon10y:Number = Math.round (Math.random () * 600);
    micro code follows below
    var deviceArray:Array = Microphone.names;
    trace ("input devices, sound available :");
    for (var i: int = 0; i < deviceArray.length; i ++)
    {
    trace ("" + deviceArray [i]);
    }
    var mic:Microphone = Microphone.getMicrophone ();
    Security.showSettings (SecurityPanel.MICROPHONE); We added this line because he did not accept his otherwise
    MIC.gain = 60;
    MIC.rate = 11;
    mic.setUseEchoSuppression (true);
    mic.setLoopBack (true);
    mic.setSilenceLevel (5, 1000);

    mic.soundTransform = new SoundTransform (0, 0);
    mic.addEventListener (ActivityEvent.ACTIVITY, this.onMicActivity);
    mic.addEventListener (StatusEvent.STATUS, this.onMicStatus);

    var micDetails:String = "audio input device name:"+ mic.name + "\n"; '.
    micDetails += "Gain:"+ mic.gain + "\n"; '.
    micDetails += "rate:"+ mic.rate + "kHz" + "\n"; '.
    micDetails += ' Muted: "+ mic.muted +"\n"; '.
    micDetails += "Silence level:"+ mic.silenceLevel + "\n"; '.
    micDetails += "Silence timeout:"+ mic.silenceTimeout + "\n"; '.
    micDetails += "echo delete:"+ mic.useEchoSuppression + "\n"; '.
    trace (micDetails);

    function onMicActivity(event:ActivityEvent):void
    {
    }
    function onMicStatus(event:StatusEvent):void
    {
    }

    stage.addEventListener (Event.ENTER_FRAME, stage_EnterFrame);
    function stage_EnterFrame(e:Event)
    {

    If (mic.activityLevel < 20) {}
    test_text. Text = "20";
    addChild (container5);
    container5. Graphics.LineStyle(5,0x0000FF);
    container5. Graphics.MoveTo (corcon9x, corcon9y);
    container5. Graphics.LineTo (corcon10x, corcon10y);
    }
    ElseIf (mic.activityLevel > 20 & & mic.activityLevel < 40) {}
    test_text. Text = "40";
    addChild (container4);
    container4. Graphics.LineStyle(10,0x6600CC);
    container4. Graphics.MoveTo (corcon7x, corcon7y);
    container4. Graphics.LineTo (corcon8x, corcon8y);
    }
    ElseIf (mic.activityLevel > 40 & & mic.activityLevel < 60) {}
    test_text. Text = "60";
    addChild (container3);
    container3. Graphics.LineStyle (15, 0 x 009900);
    container3. Graphics.MoveTo (corcon5x, corcon5y);
    container3. Graphics.LineTo (corcon6x, corcon6y);
    }
    ElseIf (mic.activityLevel > 60 & & mic.activityLevel < 80) {}
    test_text. Text = "80";
    addChild (container2);
    container2. Graphics.LineStyle(20,0xffff00);
    container2. Graphics.MoveTo (corcon3x, corcon3y);
    container2. Graphics.LineTo (corcon4x, corcon4y);
    }
    ElseIf (mic.activityLevel > 80 & & mic.activityLevel < 100) {}
    test_text. Text = "100";
    addChild (container1);
    container1. Graphics.LineStyle(30,0xFF0000);
    container1. Graphics.MoveTo (corcon1x, corcon1y);
    container1. Graphics.LineTo (corcon2x, corcon2y);
    }
    trace (MIC.activityLevel);
    }

    import flash.events.ActivityEvent;
    import flash.events.StatusEvent;
    import flash.media.Microphone;
    the line below code

    var t:Timer = new Timer (60000,1);

    t.addEventListener (TimerEvent.TIMER, f);

    function f(e:Event):void {}

    stage.removeEventListener(Event.ENTER_FRAME, stage_EnterFrame);
    

    }

    var container1:Sprite = new Sprite();
    addChild (container1);
    micro code follows below
    var deviceArray:Array = Microphone.names;
    trace ("input devices, sound available :");
    for (var i: int = 0; i< devicearray.length;="">
    {
    trace ("" + deviceArray [i]);
    }
    var mic:Microphone = Microphone.getMicrophone ();
    Security.showSettings (SecurityPanel.MICROPHONE); We added this line because he did not accept his otherwise
    MIC.gain = 60;
    MIC.rate = 11;
    mic.setUseEchoSuppression (true);
    mic.setLoopBack (true);
    mic.setSilenceLevel (5, 1000);

    mic.soundTransform = new SoundTransform (0, 0);
    mic.addEventListener (ActivityEvent.ACTIVITY, this.onMicActivity);
    mic.addEventListener (StatusEvent.STATUS, this.onMicStatus);
        
    var micDetails:String = "audio input device name:"+ mic.name + "\n"; '.
    micDetails += "Gain:"+ mic.gain + "\n"; '.
    micDetails += "rate:"+ mic.rate + "kHz" + "\n"; '.
    micDetails += ' Muted: "+ mic.muted +"\n"; '.
    micDetails += "Silence level:"+ mic.silenceLevel + "\n"; '.
    micDetails += "Silence timeout:"+ mic.silenceTimeout + "\n"; '.
    micDetails += "echo delete:"+ mic.useEchoSuppression + "\n"; '.
    trace (micDetails);

    function onMicActivity(event:ActivityEvent):void
    {
    }
    function onMicStatus(event:StatusEvent):void
    {
    }

    stage.addEventListener (Event.ENTER_FRAME, stage_EnterFrame);
    function stage_EnterFrame(e:Event)
    {

    If (mic.activityLevel<>
    test_text. Text = "20";

    container1. Graphics.LineStyle(5,0x0000FF);

    }
    ElseIf (mic.activityLevel > 20 & mic.activityLevel)<>
    test_text. Text = "40";

    container1. Graphics.LineStyle(10,0x6600CC);

    }
    ElseIf (mic.activityLevel > 40 & mic.activityLevel)<>
    test_text. Text = "60";

    container1. Graphics.LineStyle (15, 0 x 009900);
    }
    ElseIf (mic.activityLevel > 60 & mic.activityLevel)<>
    test_text. Text = "80";

    container1. Graphics.LineStyle(20,0xffff00);
    }
    ElseIf (mic.activityLevel > 80 & mic.activityLevel)<>
    test_text. Text = "100";

    container1. Graphics.LineStyle(30,0xFF0000);
    }

         container1.graphics.moveTo(Math.round(Math.random()*600),Math.round(Math.random()*600));     container1.graphics.lineTo(Math.round(Math.random()*600),Math.round(Math.random()*600));
    

    trace (MIC.activityLevel);
    }

  • Adobe Community Help appears randomly

    First of all, I laughed when it happened in PS:CS5, but now it just gets VERY annoying.

    Randomly, when in the window LAYER EFFECTS or LAYER ADJUSTMENTS, PS randomly generate Adobe Community Help dialog window when you focus the cursor in the window above.

    At least in PS CS3, you can close this window, but PS CS5 it takes a step forward, preventing you to close the Adobe Community Help window at ALL.  In fact go to the Task Manager, even after closing Photoshop all the way and by force to block the process.

    Boring hell, and I hope that someone had this happening to them and found a solution.

    Close everything that is related to Adobe, including whatever it is in Taskmanager, except the update, and let go for 10 seconds, minutes and see if it eventually ends.

  • [Guest] Help with random % and the command.

    How to make for this command:

    for/l %n in (1,1,5) echo % random

    output

    25356

    12452

    15247

    9618

    Instead of

    32767

    32767

    32767

    32767

    32767

    Hello

    You may need to ask the question on the MSDN forums:

    https://social.msdn.Microsoft.com/forums/en-us/home?Forum=scripting

    Kind regards

  • HELP: The random colored lines appearing in the Images

    I recently updated my ASUS GTX980 video card and use that double ASUS PB278Q monitor.  Before the upgrade, I wasn't having this problem, but now I have these random bars appear in the images.  It does not reach all the images but is very common, perhaps both the image almost. Someone knows what's the problem?

    photoshopissue.jpg

    My system:

    8.1 pro 64-Bit of Windows

    Intel i7 - 4820 k @ 3.70 GHz

    16 GB OF RAM

    ASUS GTX980 Strix 4 GB GDDR5

    I raised my Cache tile size after reading something on Google and seems to work very well for now.  If she does that again I will try these steps.  Thanks for the reply! =)

  • With the help of a tip action to display a picture (or button) on each slide.

    I have a tip action that evaluates certain criteria. Advance action is called from several different slides in the presentation. Is it possible that I can get it to display a fixed image, if the criteria are met? It seems that I have to write a new, slightly different tip on each slide action to "show" the picture of each slide.

    Is it possible to share an image (or button) so that the tip action can do appear, any slide, you are on?

    I would like to know if I need to provide for additional details. Thank you!

    Technically your advanced actions are allowed to show or hide the images on the slide where they are actually executed.  If an advanced running on slide 3, for example, action will not be able to display or hide an image on slide 5.

    However, what you can do is to place the image on one of the slides earlier in the project and then assign timed for the rest of the project.  This allows you to SHOW or HIDE the image of any slide later in the project where your advanced Action is executed.

  • Hello from a new Member and help with random images when updating

    Hi all

    I just joined the forum. In fact I have really just started using Dreamweaver. I covered a lot of ground in recent weeks and

    have managed to put in place a basic site using CSS for layout but now I hit my first problem.

    On the index page of the site- http://www.hcadesign.co.UK/ there is a large main image that I would change every time that someone

    visits the refresh of the site or hits. I hunted around and found a lot of scripts, while using java, which seem to do all that, but I'm not all have

    chance for them to work.

    My page code is as follows:-

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Humphrey Cook Associates - Architects - Interior Designers - Project Managers</title>
    <link href="styles/hca_styles.css" rel="stylesheet" type="text/css" media="screen" />
    
    </head>
    
    <body>
    <div id="wrapper">
      <div id="header"><img src="images/header.gif" width="800" height="100" alt="hca_header" /></div>
      <div id="menu">
        <ul>
          <li>About Us</li>
          <li>Residential </li>
          <li>Special Needs Housing</li>
          <li>Hotels</li>
          <li>Conservation</li>
          <li>Interiors</li>
          <li>Offices</li>
          <li>Sustainability</li>
          <li>Commercial</li>
          <li>News</li>
          <li>Contact</li>
        </ul>
      </div>
      <div id="main_image"><img src="images/haydock_atrium_420x300.jpg" width="420" height="300" alt="haydock_atrium" />
      </div>
      <div id="menu_right">
        <h3>Latest News</h3>
        <p>Planning permision finally granted for the proposed 'Villa De France'</p>
        <div id="news_image_01">
          <p><img src="images/news_villa_de_france_90x50.jpg" alt="villa_de_france" width="90" height="50" /></p>
        </div>
        <p>Application submitted for new 30 storey hotel with retail in Tower Hamlets</p>
        <div id="news_image_02"><img src="images/news_alie_St_90x50.jpg" width="90" height="50" alt="alie_street" /></div>
      </div>
      <div id="spacer"></div>
      <div id="bottom_left"><img src="images/riba_logo_127x67.gif" width="127" height="67" alt="riba_logo" /></div>
      <div id="bottom_thumb_01"><img src="images/thumb_beckton_95x67.jpg" width="95" height="67" alt="beckton" /></div>
      <div id="bottom_thumb_02"><img src="images/thumb_edgeworth_link_95x67.jpg" width="95" height="67" alt="edgeworth" /></div>
      <div id="bottom_thumb_03"><img src="images/thumb_tov_bathroom_95x67.jpg" width="95" height="67" alt="haydock" /></div>
      <div id="bottom_thumb_04"><img src="images/thumb_edgeworth_interiors_portrait_95x67.jpg" width="95" height="67" alt="the_old_vicarage" /></div>
    <div id="bottom_right">
      <h1>Architects</h1>
      <h1>Interior Designers</h1>
      <h1>Project Managers</h1>
    </div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    
    

    I've highlighted where the image must rotate is red.

    The scripts I found have usually put something in the head of <>, something where the image should be (but I didn't know if it should be

    a_le_sein_de the div or img src or what?) and also a file separate *.js stored in the directory root.

    In any case I'm not getting anywhere and need assistance because I don't really know what I'm doing with javascript.

    See you soon

    Put aside the random banner thing until what gain you more experience with HTML code.  You can't do things advanced in DW without a basic knowledge of the code syntax. Start at the link below:

    HTML, CSS, and JavaScript tutorials-

    http://w3schools.com/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web-design.blogspot.com/

  • Help button random code

    I work with a small flash file that plays a short animation that ends on the 42 and poster frame button.

    The button has the following code:

    on (release) {}
    var random = (6) accident;
    If (coincidence == 1) {}
    tellTarget ("") {}
    gotoAndPlay (43);
    }
    }
    If (coincidence == 2) {}
    tellTarget ("") {}
    gotoAndPlay (44);
    }
    }
    If (coincidence == 3) {}
    tellTarget ("") {}
    gotoAndPlay (45);
    }
    }
    If (coincidence == 4) {}
    tellTarget ("") {}
    gotoAndPlay (46);
    }
    }
    If (coincidence == 5) {}
    tellTarget ("") {}
    gotoAndPlay (47);
    }
    }
    If (coincidence == 6) {}
    tellTarget ("") {}
    gotoAndPlay (48);
    }
    }
    }


    6 next executives (43-48) have different videos on them and a stop actionscript. And when the user clicks the button movie clip a frame 42 will play randomly and then after finishing dates back to 42 frame and displays the button again.

    The flash works perfectly, except the button plays only random video clips on frames 43-47. He is ignorant of 48 frame.

    Does anyone have any ideas as to why?

    I do not understand why tellTarget("") {...}
    I don't understand why if... If... If... If... If...
    I do not understand why not

    on (release) {}
    var zufall:Number = 43 + Math.floor (6 * Math.random ());
    gotoAndPlay (accident);
    }

    to set all...

    If you use AS1

    on (release) {}
    coincidence var = 43 + random (6);
    gotoAndPlay (accident);
    }

  • Need help with installation tips Best CC on how install with my setup? SSD is for windows, HHD for programs.

    I have a PC with windows 10. My SSD is 112 GB. It was used for my OS and windows 10 drivers. Then I have a 1 TB HARD drive, which is used for programs and the storage. Is it possible to install everything on the HARD drive? I don't want to fill the SSD because its purpose was mainly for windows. If I can't install it on disk or is not a good idea... Please could someone guide me through the BEST way to install the programs in the suite Creative cloud on my computer with how it is implemented?

    You have no other choice than to install the main office application on your machine's main drive.  In addition, you can install applications on another drive.

    Change for Applications installation location

    With the application of CC open, select the gear icon in the upper right, and then choose Preferences.  In the preferences of the screen select creative cloud and then look for the drop-down list installation location

  • Help on random sample in oracle

    Hello

    I have a set of data members about 30 k, but I want to select only 4% of these members. I wish that these 4% of members should represent the aka of the entire population of data sampling. I can just use

    Select * sample (4) xyz to get 4% sample of actual data?

    Hello

    Harshal84 wrote:

    Thanks Frank,.

    Is there another way to do it?

    Yes, but it is less effective: (if the table has only 30 000 lines, then efficiency is probably not a big problem).

    WITH got_analytics AS

    (

    SELECT x *- or whatever the desired columns

    , COUNT (*) () AS total_rows

    ROW_NUMBER () OVER (ORDER BY dbms_random.value) AS r_num

    XYZ x

    )

    SELECT *- or the list of all columns except total_rows and r_num

    OF got_analytics

    WHERE r_num<= round="" (.04="" *="">

    ;

    This query will show exactly 4% of the lines (or as close as possible, given that 4% of the total will not necessarily be an integer).

  • MSN Money, Portfolio Manager - how do I add actions that I have, I'm having a nightmare! Help

    I thought it looked like a very good product, but there is no help from the tips on the page and I want to add what I already have before I start trading on anything else but can't seem to find out how.  Also, is there anywhere a guide of how to use it?

    I believe that they have been withdrawn from service, but are still useful

    http://social.Microsoft.com/forums/en/money/threads

    http://money.MSN.com/common/404-community.aspx?Board=yourmoney

  • Sound is squeaky, he cannot know. Need help, please

    Hi, I had a problem with getting a blue screen a few times and it turned back a few months ago to be because I had AVG and Norton, both installed on my computer and he didn't like that. I ended up finding it fixed thanks to the presentation of a report from here and get help, but I think I got him too late and there could be residual effects, I'm not sure.

    My sound is real grinding, it has been progressively worse for a little while now that I tried to figure it out so now I'm here asking for help. It's almost a kind of sounds like the sound of transformers they do in the movies and it is true irritating because I'm watching videos of lectures for an online class so I really need the sound. All sound icons down in the report of the bar of tasks, everything is fine but I run CCleaner, Spybot, I have a paid subscription to Norton, I ran a rootkit revealer, memtest. The resource monitor, as far as I know, is not displayed nothing extraordinary, but I'm far from being positive on that. Uninstalled and reinstalled drivers, restarted the PC. Device Manager says all drivers were very well, but I did it just to make sure they were the most up-to-date. It is ok for a little while, but then the problems come back. All that is found malware-wise has been fixed. Video got to a point where it was sometimes a little slow, so it is not just the sound card and I watched a movie on VLC Media Player and it was still scratchy and nervous, which excludes from the internet connection. Fix? Tried to answer as much as I can so I can come here and give everyone as much information that they need to help you.
    I wanted a little just to see how I could have missed before accepting that some cards inside is dying or something that I need to replace. Any help would be appreciated. Thank you! Here are the specifications of the computer and if someone who can help the needs nothing else from me, please do not hesitate. Thanks again
    It's an s5-1060 HP w / 64-bit Windows 7 SP1, 6 GB of RAM and an Intel i-5 2.90 GHz CPU

    Hello Jeff,.

    Thanks for posting your question on the Forum of the Microsoft community.

    I'm sorry for the late reply.

    I suggest you try after checking and Microsoft Help article if this can help.

    Tips for solving common audio problems
    http://Windows.Microsoft.com/en-us/Windows/tips-fixing-common-sound-problems#tips-fixing-common-sound-problems=Windows-7

    Please also download and install the audio drivers from this link:
    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4063&LC=en&cc=us&DLC=en&sw_lang=&product=5097984

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • PES download help

    A little help please.

    I bought PSE14 and Prime Minister through Adobe download. I downloaded both, hit the. EXE file and everything seemed fine. However, no program will accept the license key (says it is not valid). I contacted the support PSE & they couldn't get it to work either. After a few days, had received an e-mail saying: license keys should now work and to remove the programs, download and try again. Done as said, but the license keys still does not work. Contacted again support. This person asked I change the name of the file program to ".old" and repeat the download process. I couldn't change the name of the file, because my PC said it was currently in use (even after a reboot and the Task Manager showed nothing open). Support now gave me the task of change or rename a list of 15 program to ".old" files and start the download process again. I really need to go through all this to make a simple photo editing? Any help, suggestions or tips to simplify this process would be most appreciated.

    Thank you

    Yes, by 'remove programs' I used the program uninstaller. There was never any mention of "Adobe Cloud". Not even sure that it is. I ran uninstall again tonight and re-uploaded. Received the same message en PES. However, the PSE first accepted the product key and seems to work very well. Go figure.

Maybe you are looking for