So if you read Philip's tutorial, then it should be easy to get happening.
You want to keep the onclick handler, but get rid of the href to the swf
(you don't want to link to the swf, you want to run the javascript code to
insert the swf onto the page). As a simple demonstration:

<a onclick="javascript:alert('test')" href="#"><img src=some.jpg"
width="175" height="175" alt="test"/></a>


Aran


-----Original Message-----
From: swfobject@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of SAW
Sent: Monday, 8 December 2008 8:39 AM
To: SWFObject
Subject: SWFobject 'onclick' with image links rather than with text links


Hi. I want to use an IMAGE hyperlink (instead of a TEXT hyperlink) to
dynamically load SWF files via the SWFObject_2.1 'onclick' method - as
describe so eloquently by Philip at <a href="http://pipwerks.com/lab/
swfobject/load-onclick/2.0/index.html" target="_blank">http://
pipwerks.com/lab/swfobject/load-onclick/2.0/index.html</a>

I can get the TEXT links to work.
However, the IMAGE links do not work; that is what I am trying to fix.

What is the cleanest way to write the line(s) code in the body?

This is the line of code that I currently have that seems faulty:

<code>
this red dot should play flash movie 1
<a onclick="loadSWF(this.href); return false;" href="http://www.saw-
art.com/photographer/slideshows/book/clickshow.swf"><img src="http://
www.saw-art.com/photographer/elements-slideshows/dot_red.gif" alt=""
width="26" height="26" border="0" /></a>
</code>

In the meantime, I have built an example page of my current situation
here:
<a href="http://www.saw-art.com/photographer/slideshows/book/test-
SWFobject_v1.html" target="_blank">http://www.saw-art.com/photographer/
slideshows/book/test-SWFobject_v1.html</a>

- - -
my goal:
I want a page that automatically plays a flash movie.
On that page I want 3 images (dots that are gifs) that when
'onclicked' dynamically swap out the original SWF for different SWFs.
- - -

Thank you. Your help is appreciated!

best, Stephen




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to swfobject@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to