HTML in Actionscript

When I paste HTML text from Dreamweaver into Actionscript, to
appear in a dynamic text field, Actionscript chokes on any line
spaces between tags (which Dreamweaver automatically puts in). I
tried manually deleting all the line breaks, but the text is so
long, I end up with a single, incredibly unwieldy line of code.
There must be another way of getting Actionscript to accept
HTML text with invisible line breaks between the tags. Does anyone
know? Or do I have to load the HTML text from an external file? I'm
already loading a CSS stylesheet from an external file, maybe the
text needs to be too. Especially as I have several paragraphs of
text. Thanks!

you can use something like the following to make your code
more eyeball friendly:

Similar Messages

  • HTML from ActionScript BUG

    Keeping track of user actions in HTML from ActionScript
    Document-level event listeners can be assigned to the
    JavasScriptObject as illustrated in the example below, which traces
    each DOM element in the HTML to receive an onmouseup event.
    var doc:JavaScriptObject = event.currentTarget.domWindow;
    doc.onmouseup = function():void
    trace(arguments[0].srcElement);
    on first mouse click does not work. It's a BUG???

    Hi Golev,
    Try registering the Document-level event listeners on the
    "complete" event of <mx:HTML>, like the following full
    example. Based on your description, it seems those events (such as
    doc.onmouseup) are registered on the "click" event instead. If
    that's the case, the events won't get registered until the 1st
    click and consequently won't get fired until the 2nd click.
    quote:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    public function onHtmlComplete(event:Event):void {
    var doc : * = event.currentTarget.domWindow;
    doc.onmouseup = function():void {
    trace(arguments[0].srcElement);
    ]]>
    </mx:Script>
    <mx:HTML id="html" location="
    http://www.google.com"
    complete="onHtmlComplete(event);" />
    </mx:WindowedApplication>
    /Vincent

  • Adding HTML in ActionScript

    I'd like to make a Flash project using AS 3.0 that I can have extentional links. What is the code to do so?
    I'd also like to have a Flash project using AS 3.0 where I can call links from the same site.

    I want to make an internal link within the same website. Would it be the same thing? For example I only want to use Flash on the index page, but I want the Flash to link to another page in the site.    

  • I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro

    Hi,  My name is David and I followed a course creating my own website from Lynda.com by Paul Trani. After that I created my first own webste. After I finished it, everything was working well in flash and firefox. I have only one problem and question concerning the feed back form for sending info from my website to my emailaddres. I created my website “LisbonDreamWalking”in Flash CS5 pro. I herein have a contact page, where people can send an email for a walk in Lisbon, date,the number of people etc. Now I want through my ISP / host funpic.org, that the input, info text fields to be sended to my emailaddress [email protected]. My mail URL adress  iss: http://lisbondreamwalk.li.funpic.org  This is a free host, so they don't work with forms like in the course, and I need some additional info for the php. Here is my HTML (Flash actionscript 3.0) for the sending I only have the red text to fill in (php), I was told by the adobe course.I really hope someone can help me?! Thanks in advance!
    Instructions: 1. Add your custom code on a new line after the line that says "// Start your custom code" below. The code will execute when the symbol instance is clicked. */  send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_13);  function fl_MouseClickHandler_13(event:MouseEvent):void {          if (thename.text == "" || theemail.text == "" || thetime.text == "" || thepersons.text == "" || themessage.text == "")      {           thankyou.text = "please fill out all fields";      }      else      {           // create a variable container           var allVars : URLVariables = new URLVariables();           allVars.name = thename.text;           allVars.email = theemail.text;           allVars.time = thetime.text;           allVars.persons = thepersons.text;           allVars.message = themessage.text;           //Send info to a URL           var mailAddress:URLRequest = new URLRequest("http.www.namewebsite.com/gdform.php");           mailAddress.data = allVars;           mailAddress.method = URLRequestMethod.POST;           sendToURL(mailAddress);            thankyou.text = "Thank YOU!";           thename.text = "";           theemail.text = "";           thetime.text = "";           thepersons.text = "";           themessage.text = "";      } }
    H

    Thank you Kglad, I am going to see if I can make it work. I will let you know!
    Date: Thu, 13 Oct 2011 08:55:05 -0600
    From: [email protected]
    To: [email protected]
    Subject: I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro
        Re: I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro
        created by kglad in Action Script 3 - View the full discussion
    you missed part of the tutorial (or the tutorial is incomplete):  send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_13); function fl_MouseClickHandler_13(event:MouseEvent):void{     if (thename.text == "" || theemail.text == "" || thetime.text == "" || thepersons.text == "" || themessage.text == "") { thankyou.text = "please fill out all fields"; } else { // create a variable container var allVars : URLVariables = new URLVariables(); allVars.name = thename.text; allVars.email = theemail.text; allVars.time = thetime.text; allVars.persons = thepersons.text; allVars.message = themessage.text; //Send info to a URLvar mailAddress:URLRequest = new URLRequest("http.www.namewebsite.com/gdform.php"); mailAddress.data = allVars; mailAddress.method = URLRequestMethod.POST; sendToURL(mailAddress);
    }}  var urlLoader:URLLoader=new URLLoader(); function sendToURL(mailAddress):void{urlLoader.addEventListener(Event.COMPLETE,completeF);urlLoade r.load(mailAddress);} function completeF(e:Event):void{ thankyou.text = "Thank YOU!"; thename.text = ""; theemail.text = ""; thetime.text = ""; thepersons.text = ""; themessage.text = "";}
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3969414#3969414
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3969414#3969414. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Action Script 3 by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Trouble Sending HTML Form Data

    I've been tasked with replicating the following HTML in actionscript for the integration of a flash frontend onto an existing cart system:
    HTML Code:
    <form name="campaign" method="post" action="https://www.client.net/portal/site/client/template.APPFORM?app=CL_OC">
    <input type="hidden" name="campaignSnippet" id="campaignSnippet" value="<campaign trackingCode="testing" xmlns="campaign"><ATONCE><styleColor number="123456-789"/></ATONCE></campaign>"/>
    </form>
    Now, I've been able to build the value string without any issues, but getting it to post successfully to the server is what's giving me problems. I've been able to use the above code in an HTML page to post the item to the cart successfully, but my code in AS3 (below) isn't successful:
    ActionScript Code:
    var sendOrder:URLRequest = new URLRequest( "https://www.client.net/portal/site/client/template.APPFORM?app=CL_OC" );
    sendOrder.method = URLRequestMethod.POST;
    var variables:URLVariables = new URLVariables();
    variables.type = "hidden";
    variables.name = "campaignSnippet";
    variables.id = "campaignSnippet";
    variables.value = encodeURIComponent(stringBuilder);
    sendOrder.data = variables;
    sendToURL(sendOrder);
    (stringBuilder is the value string from the HTML snippet above)
    What am I doing wrong in building the HTTP request?
    Thanks in advance for any help you can throw my way!

    Try:
    var sendOrder:URLRequest = new URLRequest( "https://www.client.net/portal/site/client/template.APPFORM?app=CL_OC" );
    sendOrder.method = URLRequestMethod.POST;
    var variables:URLVariables = new URLVariables();
    variables.type = "hidden";
    variables.name = "campaignSnippet";
    variables.id = "campaignSnippet";
    variables.value = encodeURIComponent(stringBuilder);
    sendOrder.data = variables;
    var loader:URLLoader = new URLLoader();
    // loader.addEventListener(Event.COMPLETE, finished);  // optional
    loader.load(sendOrder);

  • DW CS5 use ActionScript files without Flash

    Our websites must avoid requiring a Flash download in the client browser.
    Can we use Dreamweaver CS5 with ActionScript files (.as) without requiring Flash in a browser?
    For example, DW CS5 menus include File -> New ... -> ActionScript,
    but I cannot find literature or examples on using .as with Dreamweaver.
    thanks,
    Bruce

    ActionScript is the backbone for Flash applications (FLV or SWF).
    Unlike HTML & JavaScript, ActionScript is not a web programming language per se.  It is a Flash programming language.  And while some web devices support Flash many others do not.
    If your site cannot use Flash then your ActionScript will need to be replaced with a suitable web alternative.  Perhaps jQuery or Ajax (JavaScript & CSS).
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Open URL in a target div

    I need some actionscript help.
    I have a DIV with an iframe inserted into it on my webpage. I
    am trying to get my flash button to open a URL within that iframe
    without refreshing the entire page. Is there a way to accomplish
    this? Here are some details about my HTML and Actionscript:
    HTML:
    <div id="graynav"><iframe src="gravnav.html"
    name="secondarylinks" width"175" height"349" frameborder="0"
    scrolling=no"></div>
    Actionscript:
    button1.onRelease = firstlink;
    function firstlink() {
    getURL("graynav.html", "secondarylinks")
    Do I need to specify the target in a different way? Any help
    would be appreciated.
    Thanks.

    try using an id in your iframe and targeting that id in
    getURL().

  • LoadMovie in as2

    hi everybody
    i am working in as2 under flash cs3 aon windows xp
    i develop an audio player which can play dynamic audio files
    of two formats "mp3" and "swf" from remote servers..
    The issue is when i embed the player in html and make it live
    to access through the internet..
    it plays mp3 files without any issue but it cannot play swf
    files from one specific server and it can play swf files from other
    remote servers, the problem is really very strange since it works
    fine on linux OS but not on windows.
    and secondly when i hardcode the address of that specific
    server which passed from html in actionscript and then i press
    control+enter it plays the swf sound. but when i publish it with
    hardcoded url in it and play the html file it doesnt play the
    sound...
    i try System.security.allowDomain("that specific server url")
    and even i try System.security.allowDomain("*") but it doesnt
    solve the problem.
    i am unable to figureout the problem ..
    plz help..
    thanks

    hi
    actually mp3 audio file from same server working fine.
    and swf audio file from same server plays only when i
    hardcode the url in flash code and play it via ctrl+Enter and when
    i publish it, then it doesnt works for me. so if it is still a
    security issue then i also try crossdomain policy file and also use
    System.security.allowDomain("www.servername.com")
    so what can be the other possible option to cope down this
    issue?
    thanks

  • Size of video unreadable on screen

    I am trying to view videos from Rivals.go Pantherlair.  The video is so enlarged that it fills the entire screen and the video is not viewable.

    Ctrl-0  (zero - not "O") will reset the zoom settings for the browser.
    Outside of that there's nothing Flash Player can do, because it only plays content based on the HTML and Actionscript of the pages you visit.

  • Links in .swf blocked?

    Hi!
    I am designing a website in dreamweaver. I designed a banner and navigation bar in flash. (CS3)
    My problem is that while the banner and nav bar work fine when previewed in flash, once I put them into dreamweaver and preview the site in my broswer the links do not work and I get this message:
    For the time being the links go to google dot com. It doesnt seem to be a browser issue or an issue with my flash player settings.
    Googling the problem gave me this: http://helpx.adobe.com/flash-player/kb/links-swf-files-dont-function.html
    Basically, it is telling me I need to "allowscriptaccess = always" or tell the "navigateToURL to use "_blank" as the target" in the .swf. However, I would like the link to open on the same window/tab in the browser so I would prefer not doing it the "_blank" way.
    I am more of a designer and new to coding in html and actionscript.
    I have tried the method described in the Adobe help site but I must be doing it wrong.
    Any help is appreciated!

    Hi,
    This is the Flash Player Security Warning that gets thrown when a local content is trying to communicate with the Internet. This is being done to protect you from potentially harmful content that could be used to send sensitive information stored on your computer or local network to locations on the Internet. However you can allow such contents to communicate with the Internet by trusting your local file/application and add the local file(s)/file location(s) to the Flash Player Settings Manager trusted list.
    Please follow the detailed instructions posted at http://helpx.adobe.com/flash-player/kb/communicate-internet-flash-content.html to add your local content(s) to the list of trusted files and you may also want to set to 'Always allow' to avoid the warning once for all.
    Let us know if this is of any help to you.
    Thanks!
    Mohan

  • Building a joel grimes look a like flash website

    ok, so I'm very well versed in photoshop and know a tiny html and get by in most cases by google searches for html an actionscript.  I want to emulate this website's photogallery and home page.... http://www.joelgrimes.com/Artist.asp?ArtistID=12191&Akey=P7FJP8B4 .
      First of all, I am very computer savy.  Point me in the right direction and I can normally make it work when it comes to software, electronics, etc.  I have the patience to sit down and learn flash through lydia.com if I have to.  Is it flash I want to be concentrating on?  I have the entire adobe cs5 suite at my disposal.  Should I use flash builder...can I get away with photoshop and then use flash catalyst?  I don't want to waste time learning the wrong software.  Please help.  Thanks in advance.  My website is here... http://www.nakean.com

    From your description, it sounds like your main timeline has
    more than
    one frame, and that your logo animation is on that main
    timeline.
    Try this: Take the logo animation and put it into a
    movieClip. You
    should only need one cycle of the animation. Place an
    instance of that
    movieClip on the main timeline and extend the layer to the
    last frame in
    the main timeline.
    Remove the original logo animation from the main timeline.
    When you test the movie, you should see your logo animation
    play
    regardless of what the main timeline's playback head is
    doing.

  • Flash CS4 Professional Help is live on the web

    I just wanted to let everyone know that the Flash CS4 Help is
    now live on the Adobe web site. Search is enabled, but is still
    being refined. The help topics are still being indexed, so you may
    not see them in search results for several more days.
    In the meantime, you can browse all the Help titles that have
    been updated for CS4, including the following:
    Using Flash:
    http://help.adobe.com/en_US/Flash/10.0_UsingFlash/
    Programming ActionScript 3.0:
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/
    Using Adobe ActionScript 3.0 Components:
    http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/
    ActionScript 3.0 Language and Components Reference:
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html
    Learning ActionScript 2.0 in Adobe Flash CS4 Professional:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/Part1_Learning_AS2_1.html
    ActionScript 2.0 Language Reference:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/Part2_AS2_LangRef_1.html
    Using ActionScript 2.0 Components:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/Part3_Using_V2_Components_1.html
    ActionScript 2.0 Components Language Reference:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/Part4_AS2_Components_LangRef_1.html
    Adobe AIR 1.1 Quick Starts for Adobe Flash CS4 Professional:
    http://www.adobe.com/devnet/air/flash/quickstart/
    Developing Adobe AIR 1.1 Applications with Adobe Flash CS4
    Professional:
    http://help.adobe.com/en_US/AIR/1.1/devappsflash/
    Developing Adobe Flash Lite 2.x and 3.x Applications:
    http://help.adobe.com/en_US/FlashLite/2.0_FlashLiteDevGuide2/index.html
    Adobe Flash Lite 2.x and 3.x ActionScript Language Reference:
    http://help.adobe.com/en_US/FlashLite/2.0_FlashLiteAPIReference2/index.html
    Developing Adobe Flash Lite 1.x Applications:
    http://help.adobe.com/en_US/FlashLite/1.0_FlashLiteDevGuide1/index.html
    Adobe Flash Lite 1.x ActionScript Language Reference:
    http://help.adobe.com/en_US/FlashLite/1.0_FlashLiteAPIReference1/index.html
    Extending Adobe Flash CS4 Professional:
    http://help.adobe.com/en_US/Flash/10.0_ExtendingFlash/index.html
    Enjoy!
    -Jay

    Super Thanks!!!

  • Special characters and RichTextEditor

    Using my RichTextEditor to upload text via PHP into MySql.
    Works fine at home on my test server, but on the remote server
    special characters (copied and pasted via windows special
    characters panel) like a ū will only show as a question mark.
    I tried php functions like htmlspecialchars etc, but to no avail.
    the database is coded in utf-8, just as my html and actionscript.
    how can I solve this problem?

    depends what you want to do, but you can use the alt + codes like alt-0151 for em dash, etc... You can find tables online.
    For example: http://www.theasciicode.com.ar/

  • Dynamic Video Playlist

    Hi, I am new to Actionscript 3 and I have followed the
    tutorial regarding creating a dynamic video playlist with
    thumbnails. I created as the tutorial said and it worked fine.
    Instead of their just being a title for a video, I have also tried
    to add a description to each tileitem, but instead the title
    repeats twice. Can anyone see where i'm going wrong? You can view
    my playlist here - www.coolmustard.co.uk/VideoPlaylist.html
    Thumb actionscript file:
    package {
    import fl.controls.listClasses.ICellRenderer;
    import fl.controls.listClasses.ImageCell;
    import fl.controls.TileList;
    import flash.text.*;
    public class Thumb extends ImageCell implements
    ICellRenderer {
    private var desc:TextField;
    private var info:TextField;
    private var textStyle:TextFormat;
    public function Thumb() {
    super();
    loader.scaleContent = false;
    useHandCursor = true;
    // set skins
    setStyle("upSkin", ThumbCellBg);
    setStyle("downSkin", ThumbCellBg);
    setStyle("overSkin", ThumbCellBgOver);
    setStyle("selectedUpSkin", ThumbCellBgOver);
    setStyle("selectedDownSkin", ThumbCellBgOver);
    setStyle("selectedOverSkin", ThumbCellBgOver);
    // Create and format desc
    desc = new TextField();
    desc.autoSize = TextFieldAutoSize.LEFT;
    desc.x = 80;
    desc.y = 4;
    desc.width = 500;
    desc.multiline = true;
    desc.wordWrap = true;
    addChild(desc);
    textStyle = new TextFormat();
    textStyle.font = "Arial";
    textStyle.color = 0xffffff;
    textStyle.size = 11;
    textStyle.bold = true;
    info = new TextField();
    info.autoSize = TextFieldAutoSize.LEFT;
    info.x = 80;
    info.y = 15;
    info.width = 500;
    info.multiline = true;
    info.wordWrap = true;
    addChild(info);
    override protected function drawLayout():void {
    // Position cell elements; tweak these for your thumbs if
    needed
    var imagePadding:Number = getStyleValue("imagePadding") as
    Number;
    loader.move(11, 8);
    var w:Number = width-(imagePadding*2);
    var h:Number = height-(imagePadding*2);
    if (loader.width != w && loader.height != h) {
    loader.setSize(w,h);
    loader.drawNow();
    desc.text = data.label;
    desc.setTextFormat(textStyle);
    info.text = data.label;
    info.setTextFormat(textStyle);
    background.width = width+5;
    background.height = height+2;
    textField.visible = false;
    Videoplaylist actionscript code:
    package {
    import flash.display.MovieClip;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import fl.controls.listClasses.CellRenderer;
    import fl.controls.ScrollBarDirection;
    public class VideoPlaylist extends MovieClip {
    private var xmlLoader:URLLoader;
    public function VideoPlaylist():void {
    // Load the playlist file, then initialize the media player.
    xmlLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
    xmlLoader.load(new URLRequest("playlist.xml"));
    // Format the tileList, specify its cellRenderer class.
    tileList.setSize(600, 240);
    tileList.columnWidth = 580;
    tileList.rowHeight = 60;
    tileList.direction = ScrollBarDirection.VERTICAL;
    tileList.setStyle("cellRenderer", Thumb);
    public function initMediaPlayer(event:Event):void {
    var myXML:XML = new XML(xmlLoader.data);
    var item:XML;
    for each(item in myXML.vid) { // populate playlist.
    // Get thumbnail value and assign to cellrenderer.
    var thumb:String;
    if(item.hasOwnProperty("@thumb")>0) thumb = item.@thumb;
    // Send data to tileList.
    tileList.addItem({label:item.attribute("desc").toXMLString(),
    label:item.attribute("info").toXMLString(),
    data:item.attribute("src").toXMLString(),
    source:thumb});;
    // Select the first video.
    tileList.selectedIndex = 0;
    // Listen for item selection.
    tileList.addEventListener(Event.CHANGE, listListener);
    // And automatically load it into myVid.
    myVid.source = tileList.selectedItem.data;
    // Pause video until selected or played.
    myVid.play();
    // Detect when new video is selected, and play it
    function listListener(event:Event):void {
    myVid.play(event.target.selectedItem.data);
    XML Playlist:
    <?xml version="1.0" encoding="UTF-8"?>
    <playlist id="Adobe Developer Center - Dynamic Video
    Playlist in AS3" >
    <vid desc="Champneys Spa's and Resorts"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysIntro.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysIntro.jpg"
    />
    <vid desc="Accommodation at Champneys"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysAccom.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysAccom.jpg"
    />
    <vid desc="The Henlow Spa and Resort"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysHenlow.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysHenlow.jpg"
    />
    <vid desc="The Forest Mere Spa and Resort"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysMere.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysMere.jpg"
    />
    <vid desc="The Springs Spa and Resort"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysSpings.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysSprings.jpg"
    />
    <vid desc="The Tring Spa and Resort"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysTring.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysTring.jpg"
    />
    <vid desc="Spa Treatments at Champneys"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysSpaTreat.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysSpaTreat.jpg"
    />
    <vid desc="Fitness and Well-Being at Champneys"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysFitness.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysFitness.jpg"
    />
    <vid desc="Aqua Therapy at Champneys"
    info="Enter a short description here"
    src="
    http://www.coolmustard.co.uk/videos/ChampneysAquaTherapy.flv"
    thumb="
    http://www.coolmustard.co.uk/thumbs/ChampneysAquaTherapy.jpg"
    />
    </playlist>
    If anyone can help that would be brilliant.

    I can't pinpoint where data.label derives from, but at first
    glance I'd say the problem might be between the following sets of
    lines...
    desc.text = data.label;
    desc.setTextFormat(textStyle);
    info.text = data.label;
    info.setTextFormat(textStyle);

  • HTML swap image command from Flash Actionscript

    Is there a way within Flash, with actionscript, to make an
    image swap on an html page? Help!

    yes it is posible.
    set img id for the image in your html, e.g: Image1
    <img id="Image1" src="pic01.jpg" width="100" height="100"
    alt="" />
    lets say you have a button, when click on it, it swap Image1
    to pic02.jpg
    on(press){
    getURL("javascript:MM_swapImage('Image1','','pic02.jpg',1)")
    and another button, when click on it, restore original image,
    on(press){
    getURL("javascript:MM_swapImgRestore()")
    and the most important thing, add script below in your html
    head tag

Maybe you are looking for

  • Office 2013 Will not open documents in a shared folder but 2007 will.

    Hi, Recently we are testing office 2013 and have noticed a problem. When office attempts to open an Excel or Word document that is stored on a shared drive on the file server it will not open it. When you double click on the document, either word or

  • Aperture won't connect to facebook when publishing photos...

    Hello, I am getting this error message when I try to publish photos to my facebook account... "An unknown error occurred. Please try again later." I have tried numerous things that I have seen work for other people in the past but with no sucess... I

  • Deadlock issue in Partitioned Tables

    Hi ALL, I am facing an issue of Deadlock while inserting data into a partitioned table. I get an error "ORA-00600: Deadlock detected". when i see the trace files, following lines are appearing in them: "Single resource deadlock: blocking enqueue whic

  • Oracle Service Bus (OSB) 10.3.1, now available

    See: http://www.oracle.com/technology/software/products/osb/index.html A new version of the Oracle Service Bus (OSB 10.3.1) is now available, quick list of new OSB features: * JCA Transport with certified JCA adapters * Support for generating config.

  • How to achieve that "SELECT * FROM table WHERE age BETWEEN 18 AND 23 AND n"

    How to achieve the SQL like that "SELECT * FROM table WHERE age BETWEEN 18 AND 23 AND name = 'Will' " with BDB C-API The primary key in the primary database is 'age' ,and the secondary key in the secondary index is 'name' ,in a lot of examples ,there