Linking .swf to html page using a href ......

I have attempted to get an anwser to this on the Flash forum, but it is a jungle over there.... I have attempted to link a swf to a web page on my site using the a href property; the page opens in Safari and Firefox; however, in IE7 the page shows at the bottom of the browser, but nothing happens on mousedown. I fear it may have to do with the way IE handles the wmode=transparent property...  I have tried using an invisible button in Flash, but it covers up the animation every time...
This is the code for the two button graphics (movie clips):
<table style="width: 100%;" border="0">
<tbody>
<tr>
<td align="left"><a href="/index.php/design-samples.html">
<object width="220" height="120" data="/Flash/designs_ad.swf" type="application/x-shockwave-flash">
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="src" value="/Flash/designs_ad.swf" />
</object>
</a></td>
<td align="right"><a href="/index.php/recent-work.html">
<object style="width: 220px; height: 120px;" width="220" height="120" data="/Flash/recentwork_ad.swf" type="application/x-shockwave-flash">
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="src" value="/Flash/recentwork_ad.swf" />
</object>
</a></td>
</tr>
</tbody>
</table>

Hi
The reason it will not work in IE is because IE uses a different form of code to play swf's/flv's, (application vs's plug-in).
Firefox and Safari use - type="application/x-shockwave-flash", but IE uses - classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000".
If you do a standard insert - media - swf from the main menu bar in dreamweaver this will insert the correct code for you.
PZ

Similar Messages

  • How to create hyperlink in Html page using Java

    Hello every one
    I want to know that how can I create a hyperlink in Html page using java ?
    Let for example
    I have code like this and i want to give hyperlink to it using java.
    rember that i am creating node using this id="name" which give me multiple value. and i want to assign diff link to each name..?
    <tr>
    <td ><span id="name"></span>
    </tr>

    but i m using this code to create node in html file
    HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
    Text txt = appHTML.createTextNode(name);
    li.appendChild(txt);
    appHTML.getElementById("name").appendChild(li);
    this will display all name value which is coming from database,
    and i want to assign a hyperlink to it,
    I have id with name also so I thought that using id i will
    create javascript like
    function popup(id)
         if(id==1)
              var n1 = window.open("../list/name1.html");
         if(id==2)
              var n1 = window.open("../list/name2.html");
    this way i want to popup particular file if i can pass id value in this function
    so want hyperlink like
    name

  • How to embed jnlp file into html page using object tag

    hi everyone,
    i have written one jnlp file like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- JNLP file for Demo applicaion -->
    <jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
         <information>
              <title>Demo Application</title>
              <vendor> </vendor>
              <description>Sample Demo Application</description>
              <offline-allowed/>
         </information>
         <security/>
         <resources>
              <j2se version="1.3+" />
              <jar href="common.jar" main="true" download="eager" />
              <jar href="classes12.jar" download="eager" />
              <jar href="toplink.jar" download="eager"/>
              <package name="com.applet.*" part="applet" recursive="true"/>
         </resources>
         <applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
    </jnlp>
    i am trying embed that jnlp file using object tag like
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">     
    <PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
    </OBJECT>
    but i am not able to load the applet using Web Start.
    Can anyone please help me. This is very Urgent for me.
    Thanks & Regards,
    Shiva.

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • How to open an Applet from a text link in a HTML Page

    Hi There
    How to open an Applet from a text link
    in a HTML page
    For example I have a HyperLink "Open Applet"
    When a user clicks that link i want to open a
    Applet in a AWT Window.
    How can i do this
    Will any one help me?
    -Ramya

    u can use javascript for that
    <SCRIPT language="javascript">
    function loadAppNow() {
    document.write("<APPLET ......></APPLET>")
    </SCRIPT>
    LoadApplet
    this will overwrite the applet on current window
    There are many good ways other than document.write to open in same window. I don't remember the syntax right now.
    Plz. refer to javascript tutorial for that.
    even you can insert the applet while retaining previous contents. its quite easy actually.
    regards....bhart

  • Beginner - how to link swf to html

    Hi,
    I need help for :
    1) linking swf to html by a click of a button (example to skip the flash intro)
    and
    2) after swf finish playing I need it to go straight to a html page
    I tried several action code but it doesn't work... Can anyone help?

    enter_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.adobe.com"),"_self");
       navigateToURL(new URLRequest("hhttp://www.adobe.com","_self"));
    It's working fine just try the above code

  • To know the Status code of a HTML page using Javascript

    To know the Status code of a HTML page using Javascript

    Hello,
    I am not sure to understand, which status are you talking about? The HTTP Status?
    If your javscript is executed it is more or less sure that the HTTP Status is 200 since the request is back to the browser.
    or are you talking about this is in the context of a XMLHTTPRequest call ?
    Regards
    Tugdual Grall

  • Trying to assemble a HTML page using 3 servlets.

    I am trying to assemble a HTML page using 3 servlets.
    1 servlet for generating a standard header for the page, 1 for generating a standard footer for the page and 1 for generating the content for the page.
    I know how to generate a page with only one servlet, but how do you do it with 3 servlets, with each generating part of the page.

    Use the include method of the RequestDispatcher to include the output of the header and footer servlets.

  • Link button to local html page using AS3

    I am using AS3 and having trouble linking a button to a local html page

    Okay, I tried both of the codes and it is still now working.
    navigateToURL(new URLRequest("file:///fishcom/Home.html"));
    I get a Windows dialog box that states that the path can not be found.
    navigateToURL(new URLRequest("./fishcom/Home.html"));
    This goes to http://./fishcom/Home.html  but not my page.
    The Flash file and the HTML page are in the fishcom folder on my desktop. Very frustrating because this was so easy in AS2. 

  • Dreamweaver crashes when using Live View to preview SWF in HTML page

    I'm new to DW CS4 and I'm trying to insert an swf on a blank html page.  When I attempt to use "live view" to preview Dreamweaver crashes every time.  I can view the page when I preview in a browser though.  Is there something new in CS4 I'm missing?
    Please help!
    Thanks.
    BC

    sschroeder2013  You are not alone. I updated a while ago and went into Dreamweaver to update a site and I see the same problem above.
    Please let us know when you have repaired the problem.
    Thanks!

  • FLV. not working in SWF within HTML page

    I have created a SWF presentation which contains several videos as FLVs. The videos are uploaded to a folder on the clients server.
    The exported SWF and HTML files of the presentations worked perfectly when hosted on my local machine but when sent to the client, who uploaded to their own server, the SWFs ran but would not play the FLV files within. When they changed the HTML files to HTM they worked perfectly.
    However...when they embedded the pages into the content management system the use it required that the pages were reverted back to HTML, therefore the FLVs are not working again.
    The 'still' frame appears where the FLV should be, but the skin and the video itself does not load.
    Does anyone have any idea why this issue has occurred?
    Thanks in advance.

    @Ned
    Not sure about the folder structure of their site, to be honest they've been a nightmare client from day one so getting information like that out of them has been nigh on impossible.
    The flv files are all in a folder together and these are linked from the swf with this link structure: http://www.sitename.org.uk/folder/video.flv
    I'm not entirely sure how their CMS is structured. I was throwing this question out on the off chance that someone had seen a similar instance where HTML/HTM file types had affected functionality.

  • Problem in refreshing html page using LinkToURL API

    Hi all,
    I use LinkToURL in order to open a html page in a new window. My problem is that this html file is changed (the name is the same but the contents is diff) dynamically. I click on the link and the window is open, but later on when the html file is changed and I reopen the window it shows the old html file. Is it possible to refresh this window automatically every time when it is opened? Otherwise the user has to press Refresh button in order to see the new html file.
    10x for your help.
    Svetlomira

    Hi Svetlomira,
    Do you have access to html file? Can you changed it?
    Or you can use following approach: if html is static (not jsp or asp or similar)
    you can append System.currentTimeMillis() to the html file name after '?' sign:
    final String nonCachedURL = "http://www.domain.com/index.html?" + System.currentTimeMillis();
    You can achieve this by using calculated context attribute and bind it with LinkToUrl`s reference proprty.
    Best regards, Maksim Rashchynski.

  • Can I alter the properties of an individual link on a HTML page without changing the other links?

    Hi there,
    I have a contact page created in Dreamweaver and have created an email link to launch Outlook when clicked on. However, all the links in my design have been set a certain way, i.e. white text knocked out of darker background. My email link however, is on white background so you can't see it against the white. I want to go in and simply change the color property of the email link without changing the other link colours on the page. I've tried but without luck. Is this possible to do?
    Thanks in advance for any help!

    Hello and thank you for your answer. I'm still a little confuse though.
    My existing HTML looks like this:
    <p><a href="[email protected]">[email protected]</a><br />
    My link preferences are for the who page and are at the top and look like this:
    a:link {
        color: #FFFFFF;
        text-decoration: none;
    a:visited {
        text-decoration: none;
        color: #FFFFFF;
    a:hover {
        text-decoration: none;
        color: #CCCCCC;
    a:active {
        text-decoration: none;
        color: #CCCCCC;
    .style2 {font-size: 14.5px}
    .style3 {color: #FFFFFF}
    Where exactly should I insert the new link ID that you suggested <a id="special_colors" href="url...">link text</a>
    Also, where exactly should I place the following in relation to the CSS document
    a#special_colors:link {color: red;}
    > a#special_colors:hover {color: green;}
    Sorry but this is all quite new to me. Thank you for your patience and help.

  • How to go to anchor html link from external html page in JEditorPane

    Hi people,
    I've been trying to jump to an anchor link from an external html page in JEditorPane, and I cannot get it working, I'm sure it can be done somehow...
    The HTML page has a link like:
    Hello
    and this is loaded into JEditorPane ok.
    The HyperlinkListener implementation:
    public void hyperlinkUpdate( HyperlinkEvent e )
    try {
    if ( e.getEventType() == HyperlinkEvent.EventType.ACTIVATED )
    editorPane_.setPage( getClass().getResource(
    MyDialog.this.getBaseURL().concat( e.getURL().getFile().substring(
    e.getURL().getFile().lastIndexOf( "/" ) + 1 ) ) ) );
    if ( e.getURL().getRef() != null )
    editorPane_.scrollToReference( e.getURL().getRef() );
    else return;
    } catch ( IOException ioe ) { ioe.printStackTrace(); }
    This code loads the new html file ok, but it does not scroll to the anchor. The MyDialog.this.getBaseURL() just returns something like com.name.package, I construct the URL by using this base url and the name of the html file to open.
    ANy help, thanks

    he! I'm not alone in my desperation. Take a look at my problem:
    I've got a JEditorPane (not editable) inside a JFrame. The JEditorPane is loaded with the HTML text and all the links to anchors are working properly when I click on them.
    BUT
    If I try to go to an anchor from outside this JFrame I can see how the JEditorPane scrolls to the right anchor and suddenly it scrolls back to the place where the caret was located!!!
    The "funny thing" is that my code is working in jdk1.3.1 but this is happening in jdk1.4.2. Is it a bug?!?!?!
    How could I figure out what position I have to set the caret to for every anchor in order to get the scroll working correctly???
    My implementation of hyperlinkUpdate (working properly, here isn't the problem):
       jEditorPane.addHyperlinkListener(new HyperlinkListener() {
          public void hyperlinkUpdate(HyperlinkEvent e) {
            if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
              MiEditorPane src = (MiEditorPane)e.getSource();
              src.goToAnchor(e.getDescription().substring(1));
        });My object jEditorPane is an instance of this class:
      class MiEditorPane extends JEditorPane {
        MiEditorPane() {
          super();
        public void goToAnchor(String anchor) {
          super.scrollToReference(anchor);
      }And this is the method I call from outside the JFrame containing the JEditorPane:
      public void goToAnchor(String anchor) {
         jEditorPane.goToAnchor(anchor);
      }Any help greatly appreciated ...

  • Having trouble linking to an html page in Flash.

    Hello,
    I have been using Flash for a short while and have just learned how to create a rotating banner. At this point my problem is adding a hotspot or a link from each image highlighted in the Flash movie. Can anyone take a look at my flash file and provide me with an example of actionscript that allows each image in the slideshow to link to a different page within my site. A dummy link is /Shop_DVDs.html or a full url could be www.bikepaparazzi.com. Any assistance would be greatly appreciated.
    I've attached the Flash files.

    It appears that I am still doing something wrong. I've attached the flash, but here is the code based on my understanding of how to update it:
    import flash.net.URLRequest;
    import flash.net.navigateToURL;
    dvds.addEventListener(MouseEvent.CLICK,navigate1);
    var nav1:String="http://bikepaparazzi.com"; navigate1(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav1),"_self");
    proconvention.addEventListener(MouseEvent.CLICK,navigate2);
    var nav2:String="http://proconvention.com"; navigate2(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav2),"_self");
    advertise.addEventListener(MouseEvent.CLICK,navigate3);
    var nav3:String="http://bikepaparazzi.com"; navigate3(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav3),"_self");
    tee.addEventListener(MouseEvent.CLICK,navigate4);
    var nav4:String="http://bikepaparazzi.com"; navigate4(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav4),"_self");
    proconvention.addEventListener(MouseEvent.CLICK,navigate5);
    var nav5:String="http://bikepaparazzi.com"; navigate5(e:MouseEvent):void {
    function
    navigateToURL(new URLRequest(nav5),"_self");

  • Overlapping 2 swfs on HTML page

    I have two separate swfs overlapping, each in their own div
    on an HTML page. The one on top however is a horizontal drop-down
    menu, and it overlaps the swf/div underneath it. The menu links
    only take up a small strip at the top of the page, but drop-down
    portion is what covers the majority of the page. Hence, the div
    that the dropdown menu is contained in covers a large part of the
    page as well. The swf/div underneath is a clickable link, but
    because it's overlapped by the menu swf, you can't click on it.
    Both swfs are set to wmode=transparent, and I've played around with
    the z-index of both divs too with no luck.
    I don't even know if this is a flash problem, or CSS, or
    javascript problem. If anyone can just point me in the right
    direction to solve this, it'll be greatly appreciated. Thanks in
    advance for any insight on this.

    Yeah, I have considered cutting the list in half in the backing beans, which would allow me to accomplish what I am trying to do, but I'd rather pull the collection from a single method and find a way to do it with JSF if that is possible...
    appreciate the input...
    -Garrett

Maybe you are looking for

  • Material is not shown in MD04.

    Hi Friends, We have created a Sales order for some materials. All the materials are subjected to MRP.  In mateial master  We maintian all Except MRP group. Also we maintain the Requirement type etc with respect to the Mateial Type in configuration. 

  • How can i turn an iphoto slideshow into a book?

    I am wondering how I can turn an iphoto slideshow into a book?

  • Role Validity Period Problem

    Hi guyz, I have a few questions, 1) I want to know the roles that are going to expire in this month, suppose say from NOV 1 to NOV 30. Is there any Program or any TCODE that can give me the details. 2) In which table are all the roles that have been

  • HT202644 How do I redeem my email version of giftcard?

    I recently used a giftcard to purchase an itunes giftcard of the same amount but both the pin and card number that were given in the email say they are not valid. How do I redeem this email version of a giftcard?

  • M305-s4822 Built in microphone does not work

    Help my built in micorophone does not work. WiFi works somtimes not. What has happened to Toshiba quality?  Hope some one can help trying to fix for my daughter it is her college computer.  I would return it but it is out of warrenty. Very Unhappy wi