Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making an swf a link

Status
Not open for further replies.

catalystunderx

Programmer
May 17, 2003
13
GB
once I have embedded an swf into my asp page, how do I make the whole swf a link??
 
never tried this but you could attempt to enclose the <embed> in an <a href>
 
Catalyst

I had a similar problem. Check out my page, there should be a link below. There's a pop-up window, view the code there mate.

----------------------------
Cogito Ergo Sum [jester2]
----------------------------
 
sorry harlequin, cant find it, where exactly on the site is the code??
 
honestly i dont see the code either, other than the hyperlink UNDER the swf...

though this did come to mind :

<embed onclick="window.open or window.location etc...

or

<script>
if(document.all)
{
document.onclick = window.location(blah);
}
</script>
 
If you open my webpage a popup window opens. Make the window active (select the titlebar) and press CTRL+N to open that window in a new window. Then select View | source.

The code is about half way down the page:

<EMBED SRC="images/flash/banner_05.swf" WIDTH="228" HEIGHT="208">

There ya go [colorface]


----------------------------
Cogito Ergo Sum [jester2]
----------------------------
 
Harlequin007, i dont think he's looking to embed it, i think he's already got that, he's attempting to make the embed a hyperlink.

catalystunderx, if you happen to have a flash editor, you could alter the flash file to be a link, and make the link an argument like

<embed src="myflash.swf?link=/homepage/">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top