no border on broken link?

liunx

Guest
does anyone know a way to remove the border that shows up around broken links?<!--content-->nope, the only way i know is to not have any broken links sorry.<br />
Why would you want to spend time figuring out how remove a border from a broken link and not spend the time instead repairing the link?<br />
<br />
welcome to the forums by the way :)<!--content-->cheers mate!<br />
<br />
yup, my first post here, quick reply, good answer - looking good :)<br />
<br />
the reason I ask, is that I want to make an installer for the flash player by putting a link like 'click here to install flash player' in a layer beneath a flash movie.<br />
<br />
so if you don't have the flash player, the flash movie will be reported as a broken link, and the text beneath will show...<br />
<br />
neat huh? ...except for the borders with the X and everything show around the broken flash link, so the whole thing looks a bit crappy...<!--content-->get what your trying to do, you could force it to have no borders with some style<br />
<br />
<br />
style="border:0px;"><br />
<br />
<br />
but (take into account i'm not a flash guru) with the normal code the browser will detect if the player is missing and prompt the user to install the player, that's why the pluginspage is always listed in the code:<br />
<br />
<br />
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"<br />
codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"<br />
id="file" width="500" height="70"><br />
<param name="movie" value="file.swf"><br />
<param name="quality" value="high"><br />
<param name="bgcolor" value="#84B8E8"><br />
<embed name="filename" src=http://www.htmlforums.com/archive/index.php/"file.swf" quality="high" bgcolor="#84B8E8"<br />
width="500" height="70"<br />
type="application/x-shockwave-flash"<br />
pluginspage="http://www.macromedia.com/shockwave/Download <!--more-->/index.cgi?P1_Prod_Version=ShockwaveFlash"><br />
</embed><br />
</object><br />
<br />
i may be completely wrong? can someone confirm/deny this <br />
:D<!--content-->Well, a couple of things.<br />
#1 - The code you are using will not validate (important? only if you care. I do, so I went through the process to make mine validate). (<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/flashsatay/">http://www.alistapart.com/articles/flashsatay/</a><!-- m -->)<br />
#2 - The new browser in development by Microsoft is going to ask people if they want to load flash objects. It will ask for EVERY object on the page. According to Macromedia, the best fix is to put your code in a javascript, using document.write's. (<!-- m --><a class="postlink" href="http://www.macromedia.com/devnet/activecontent/?trackingid=1e906_email_na_2988_b_101403">http://www.macromedia.com/devnet/active ... 8_b_101403</a><!-- m -->)<br />
#3 - You can do it like this...if you want a link for them to get the player:<br />
<br />
<object type="application/x-shockwave-flash" data="swf/logo.swf" width="165" height="60"><br />
<param name="movie" value="swf/logo.swf" /><br />
<param name="quality" value="high" /><br />
<param name="wmode" value="transparent" /><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.macromedia.com/shockwave/Download <!--more-->/Download <!--more-->.cgi?P1_Prod_Version=ShockwaveFlash"><br />
You need to get the Flash Player</a><br />
</object><br />
<br />
Or, put it in a javascript, like this:<br />
<br />
function flash_logo()<br />
{<br />
document.write('<object type="application/x-shockwave-flash" data="swf/logo.swf" width="165" height="60">\n');<br />
document.write('<param name="movie" value="swf/logo.swf" />\n');<br />
document.write('<param name="quality" value="high" />\n');<br />
document.write('<param name="wmode" value="transparent" />\n');<br />
document.write('<a href=http://www.htmlforums.com/archive/index.php/"http://www.macromedia.com/shockwave/Download <!--more-->/Download <!--more-->.cgi?P1_Prod_Version=ShockwaveFlash"><br />
You need to get the Flash Player</a>\n');<br />
document.write('</object>\n');<br />
}<br />
<br />
Either way, if you put that link between the open and closing OBJECT tags, then if the person does not have the player, the link will show. If you have a browser that does not have the player, go to <!-- w --><a class="postlink" href="http://www.dikaios.net">www.dikaios.net</a><!-- w --> to see an example of this.<!--content-->how can a link have a border if it is broken? links don't have borders anyway unless you click on them.<br />
<br />
images have a broken img in them if they are broken, but that is not a link. or did I just confused the holly who haa out of me :P<!--content-->I'm having problems following this question too.<!--content-->If you have a flash object on the page, and you do not have a flash player plugin set up with your browser, it acts very similar to a missing graphic. It puts the "missing image" graphic in place of the movie.<br />
<br />
What he wanted to do, was have it just not show, rather than put the little graphic (and box? probably a border set in the object or embed tag?). That way, he can have a link behind the flash movie, and if the person has no player, they wouldn't even see the flash. Instead they'd see the link.<br />
<br />
If he uses the method I showed, it should do the same thing.<!--content-->and that has nothing to do with a link with a border around it.<br />
<br />
but if the flash is not there will the background be transparent? also remember if the link is behind the flash they will not beable to click it as it will be covered by the object tag. the object tags sits higher than all other layers as it is a windowed-element.<br />
<br />
on another note, if the user doesn't have flash installed the code should present them to Download <!--more--> it without a link.<!--content-->I think he just used the wrong terms. "broken link" vs the whole missing graphic thing. Anyway...I KNOW that my way work in ie 6, ns 7, and firebird 0.7<br />
<br />
Scoutt...you can test it by going to the plugins subdirectory of your mozilla installation. Delete, or move the dll for your flash plugin (probably called something like NPSWF32.dll). Then open mozilla, and go to <!-- w --><a class="postlink" href="http://www.dikaios.net">www.dikaios.net</a><!-- w --> In the upper left (below the nav bar, but above the google search) is the link. If you follow it, and install the plugin (or move the plugin back into the plugins dir, and restart mozilla), you will be able to see the flash.<br />
<br />
And yes, the code that leoo posted will do this too(the code generated by flash), but it will not pass w3's validator.<!--content-->thanks a lot people, answers much appreciated!<br />
<br />
aaron, your first example works like a dream, although the broken link box appears appears in the beginning, but disappears after a second or so...would be nice to get rid of it altogether, but i guess you can't have it all :)<br />
<br />
i tested your javascript, but could not get it to work, using IE 6. it shows a blank page if i got the player installed or not...<br />
<br />
and leo, your style="border:0px;"> code removes borders alright, but nothing from the broken link box, i guess that box has nothing to do with borders really, it's just a stupid box, hehe.<br />
<br />
does anyone have any idea why aaron's javascript isn't working?<!--content-->hehe, isn't a missing image also referred to as a 'broken link' also?<br />
Anyway, I was right about the flash then, kimgar you don't need to add that link as the code, like what i posted, will prompt any user visiting your site, who doesnt have the plugin, to Download <!--more--> it.<!--content-->Hmmm....I did kind of leave out some steps for the javascript. Try this. In the HEAD of your html doc, put this:<br />
<br />
<script language="javascript" type='text/javascript'><br />
function flash_movie()<br />
{<br />
document.write('<object type="application/x-shockwave-flash" data="swf/logo.swf" width="165" height="60">\n');<br />
document.write('<param name="movie" value="swf/logo.swf" />\n');<br />
document.write('<param name="quality" value="high" />\n');<br />
document.write('<param name="wmode" value="transparent" />\n');<br />
document.write('<a href=http://www.htmlforums.com/archive/index.php/"http://www.macromedia.com/shockwave/Download <!--more-->/Download <!--more-->.cgi?P1_Prod_Version=ShockwaveFlash"><br />
You need to get the Flash Player</a>\n');<br />
document.write('</object>\n');<br />
}<br />
</script><br />
<br />
***Make sure that each document.write is on 1 line, and not 2.***<br />
<br />
Then, where you would normally put the code in the BODY section of your html doc, put this:<br />
<br />
<script language="JavaScript" type="text/javascript">flash_movie();</script><!--content-->ah, yess, that did the trick, works fine now, thanks aaron!<br />
<br />
yup, i just realized that the macromedia prompt would screw it all up for me, but amazingly that code of aaron's removed it. nice! it's almost perfect now, except for that<br />
broken linkbox still showing for a split second...but hey, i will stop bugging you with that brokenimagelinkboxpath thingy now :)<br />
<br />
the same thing happens on dikaios too so, heck, time to chill a bit...<br />
<br />
aaron, thanks again, your code is excellent, real nice getting rid of that macromedia popup!<br />
<br />
nice forum this one, good work!<!--content-->
 
Back
Top