[PLUG] href in flash??

Joe Pruett joey at clean.q7.com
Sat Aug 8 23:38:03 UTC 2009


> I want "mouse left click" to advance to the next image.
>
> The obvious reason is for ease of use, the subtle reason is
> to provide an href that search engine spiders can use to
> find all the images in a slide set.
>
> So - I have that working for my image slides, which are
> imbedded in an:
>
>   <a href="nextslide.html"><img src="thisslide.png" ></a>
>
> ... kind of wrapper.  Standard stuff.
> However, I get no joy if I try:
>
>   <a href="nextslide.html"> <object data="thisslide.swf"
>   ... other stuff > ... params ... </object> </a>
>
> or
>
>   <object href="nextslide.html" data="thisslide.swf"...
>
> Neither of these respond to a click.
>
> I can probably intercept the left mouseclick in javascript, but
> the search engine spiders probably aren't smart enough to figure
> that out.  Perhaps I combine that with the first nonfunctional
> aref method above, which will probably fool a spider.
>
> Given the way I am implementing things now, the javascript
> approach is a little ugly.  Some pages (not image or flash
> slides) have normal clickable links in them, and I would have
> to turn off the code that intercepts the left mouseclick.

after messing about with image maps, overlaying divs, etc.  i found a bit 
of flash magic that seems to do what you want.  this test works for me:

<html>
<head>
</head>
<body>
<a href="http://q7.com">
<object data="Spring.swf" width=100 height=100>
<param NAME="wmode" VALUE="transparent">
</object>
</a>
</body>
</html>

the magic is the wmode param passed to flash.



More information about the PLUG mailing list