Toggle Graphics

4.5
8 votes
Your rating: None

Toggles all graphical elements: Iframe, Flash, Image.

When perform first time, it hides all the graphical elements in the page, performing second time will reset to original state.

Runs in:

all frames

Script:

var grps= document.querySelectorAll('object, embed, iframe, img');
for (var i = grps.length - 1; i >= 0; --i) {
	if(grps[i].getAttribute("__MS__") === null){
		grps[i].setAttribute("__MS__", grps[i].style.display);
		grps[i].style.display = 'none';
	}else{
		grps[i].style.display = grps[i].getAttribute("__MS__");
		grps[i].removeAttribute("__MS__");
	}	
}

Comments

It's a nice script which remember the previous state of the element; so that some intentional hidden element is not shown up.

Good

works perfectly. must have a try.

great!!!!!

but still have space to promote!

wait for ur greater worker

In the last quarter of 2011, Burberry Outletrevenue at the firm - famed for its camel, red and black check pattern - rose to £574m, with sales in Chinese shops up 30%.The firm opened a Burberry Coat new flagship store in Paris and a third shop in Sao Paulo in Brazil over the period.Burberry said knitwear, men's accessories and Burberry Down Coatfragrances were among the best selling lines.Angela Ahrendts, Burberry chief executive officer said: "Our investment in flagship markets and digital technology has Burberry Dressenabled our global teams to continue to drive customer engagement.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <strike> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is to prevent automated spam submissions, you will not see this again after registration.