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="clsid27CDB6E-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>
</td>
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="clsid27CDB6E-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>
</td>