Possible to show/hide a div?
-
I would like to use events like onmouseover or onclick for showing / hiding a div (style=”display:block” and style=”display:none”)
Is it possible to add javascripts like this?
<div onmouseover=”document.getElementById(‘mydiv’).style.display=’none'”>Mouse here</div>
<div id=”mydiv”>Lore Ipsum</div> -
Sorry javascript is not allowed here due to security concerns. Neither is flash, forms or iframes.
-
It’s for the security of the server or for the security of the readers? Or it’s (also for) not allowing users to add advertisments?
-
It’s for security of the server and consequently WordPress.COM users. Check out this FAQ http://faq.wordpress.com/2006/05/07/javascript-can-i-use-that-on-my-blog/
-
I’ve actually created a plugin for this.
http://www.secondbeginning.org/?p=51
Hope it helps!
If you have any questions, just ask =)
-
I want a show/hide tag also, but I think you have to have a self-hosted blog in order to use it.
-
lifescape – we do not use plugins here at wordpress.COM so your solution would not work.
- The topic ‘Possible to show/hide a div?’ is closed to new replies.