View Full Version : Opening a .swf
jose3760
August 2nd, 2007, 05:16 PM
Hey, im relativley new to html, but i know some of the basics. I just have one question:
How do I make it so when the image on my site is pressed it opens up my .swf file in a popup window? (Game I made)
joran420
August 2nd, 2007, 06:29 PM
<a href="" onPress="javascript:newwindow(args)" >Button here </a>
...I think something like that
jose3760
August 2nd, 2007, 06:34 PM
alright, heres what I have:
<a href="http://img66.imageshack.us/my.php?image=stickrpg2004bg1.swf" onPress="javascript:newwindow(args)" ><img src="images/stickrpg.gif" width="85" height="71" alt="Stick RPG" class="left" /></a>
when I press the button it loads to where i hosted my game, but its dosent come up in a new pop up window
blazes
August 2nd, 2007, 08:34 PM
javascript:window.new('http://img66.imageshack.us/my.php?image=stickrpg2004bg1.swf');
jose3760
August 2nd, 2007, 11:24 PM
Where would I put that?
LJK
August 3rd, 2007, 01:16 PM
I'm guessing the onPress= function?
jose3760
August 3rd, 2007, 03:06 PM
mmm Still opens to the site that I host it on
<a href="" onPress="javascript:window.new('http://img66.imageshack.us/my.php?image=stickrpg2004bg1.swf');" ><img src="images/slots.gif" width="85" height="71" alt="Slot Machine" class="left" /></a>
because the <a href="" is there.
What if I were to upload the .swf into my main folder on the site?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.