Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

how to remove gray border around flash in web page

flash gray border


Andre38 2000

1:53 pm on Nov 2, 2007 (gmt 0)

5+ Year Member

I read your post #3127590.htm (http://www.webmasterworld.com/flash/3127590.htm)

on how to remove the border around flash in webpage , but it didn't work for me. Am I doing something wrong or are there new codes to do this?

My page is [mycrystalportrait.com...]


5:45 pm on Nov 2, 2007 (gmt 0)

5+ Year Member

try this javascript:

objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
objects[i].outerHTML = objects[i].outerHTML;

1 kb, works great. If you just have the one object then you obviously do not need the loop. Only thing I haven't figured out yet is after I change the flash HTML code to valid XHTML, the jscript wont work. Driving me nuts.


5:47 pm on Nov 2, 2007 (gmt 0)

5+ Year Member

If you view my profile, I have a link to my site which contains a blog and I actually just wrote an article on this topic today.

Featured Threads

Hot Threads This Week

Hot Threads This Month