Display images or flashes based on the HTML page

H

hhhsu7a

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top