HTML & CSS
I have simple html code but the a href tag in it is not working:
<a href='swfplay.php?ItemID=180'><OBJECT CLASSID='CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000' CODEBASE='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ID='FVS' Width='300' Height='250'>
<PARAM NAME='movie' VALUE='items_images/1274439560Movie.swf'>
<PARAM NAME='bgcolor' VALUE='#000000'>
<PARAM NAME='allowfullscreen' VALUE='true'>
<EMBED NAME='FVS' SRC='items_images/1274439560Movie.swf' ALLOWFULLSCREEN='true' BGCOLOR='#000000' WIDTH='300' HEIGHT='250' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></EMBED>
What is the issue ?
You may need to use
It won't work because you are probably writing gibberish code plus "proprietary markup", i.e. EMBED. What exactly are you trying to achieve embed some Flash file within a web-page?
At the moment you basically have as follows:
<object data="example.png" type="image/png">Generic Fallback</object>
Why are you wrapping the object within a hyperlink in the first place the anchor is inline and usually the "fallback" occurs within the object.
I'll give you a big hint; where is your "Fallback" text/content? If you had one - like in my example - you might see a hyperlink.
Yes i am trying to put in a flash file and thats why there is no fallback text/content. How to go now ?
Clicking on a flash object is like clicking in an iframe. The click event goes into the flash object, not to the <object> element, so it never bubbles through to the <a> and so the link is not followed. You need to implement the link in the flash object itself or overlay the link over the flash object.
What about the path?
Because I saw you used a path in your object:
What about it ? Its just fetching the swf file from that folder nothing special..even if the link exists or not but a href should still work. But it is not working. I think zcorpan is right.