Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Display images or flashes based on the HTML page

Reply
Thread Tools

Display images or flashes based on the HTML page

 
 
hhhsu7a@yahoo.com
Guest
Posts: n/a
 
      03-14-2006
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>
&nbsp;</td>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change images based on action.Even clicking changed images should do respective actions? vj Javascript 3 01-12-2007 12:26 PM
CHtmlView: How to read html text before display, change and give to display changed html code? Marek Kurowski C Programming 1 08-18-2004 06:41 PM
How to display a html page after the original html page runs a perl script Stu HTML 2 04-06-2004 05:19 AM
how to redirect to a frames-based html page and load the right html when coming from an ASP.NET page Mark Kamoski ASP .Net 2 08-13-2003 05:51 AM
how to redirect to a frames-based html page and load the right html when coming from an ASP.NET page Mark Kamoski ASP .Net 1 08-13-2003 05:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57