Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hide_class(classToHide)
- {
- if (!document.getElementsByTagName) return;
- var anchors = document.getElementsByTagName('*');
- for (var i=0; i<anchors.length; i++)
- {
- var anchor = anchors[i];
- if (anchor.getAttribute('class') == classToHide)
- anchor.style.display='none';
- }
- }
- window.onload = hide_class('slide');
Add Comment
Please, Sign In to add comment