Display images or flashes based on the HTML page

Discussion in 'Javascript' started by hhhsu7a@yahoo.com, Mar 14, 2006.

  1. Guest

    I have some programmnig experience but have never used JavaScript. Can
    someone show me how to display different images or flashes based on the
    current HTML page?

    Algorithm:
    if (current html is 1)
    (
    )
    if (current html is 2)
    (
    )

    Thanks,
    AH

    <td valign="top" height="123">
    <script type="text/javascript">
    function pleasehelp()
    {
    var mypage=" "
    if (document.??? is 1.htm) //will it return only the HTML file
    name, not URL?
    (
    mypage="../FLAHS1.swf"
    )
    if (document.??? is 2.htm)
    (
    mypage="../FLAHS2.swf"
    )
    }
    </script>

    <!-- Created with CoffeeCup Firestarter http://www.coffeecup.com -->
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
    ID="GTS75" WIDTH="700" HEIGHT="192">
    <param NAME="movie" VALUE=pleasehelp()>
    <param NAME="quality" VALUE="high">
    <param NAME="loop" VALUE="true">
    <embed src=pleasehelp() loop="true" quality="high" WIDTH="700"
    HEIGHT="192" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </EMBED>
    </object>
    &nbsp;</td>
     
    , Mar 14, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Kamoski
    Replies:
    1
    Views:
    7,142
  2. =?Utf-8?B?U2FjaGluIEt1Y2hpbmFk?=

    Screen flashes :- Smart Navigation under Frames

    =?Utf-8?B?U2FjaGluIEt1Y2hpbmFk?=, Jul 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    556
    John Saunders
    Jul 26, 2004
  3. Marek Kurowski
    Replies:
    1
    Views:
    1,007
    Mark A. Odell
    Aug 18, 2004
  4. basi
    Replies:
    0
    Views:
    105
  5. vj
    Replies:
    3
    Views:
    248
Loading...

Share This Page