homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
how to remove gray border around flash in web page
flash gray border
Andre38 2000




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

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...]

 

ebby




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

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.

ebby




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved