...

View Full Version : Hide|Remove 'class' via javascript



defencedog
10-05-2011, 07:28 PM
No Jquery plz

As you can see that I want to remove this advertisement area (denoted by 1) via some java code. Now one can observe that this advert is hosted in the 'main-content' id & wrapped in 'inner' class. One cannot remove/hide id but CAN remove/hide the class which also will remove/hide the advert area placed within this class.

http://content.screencast.com/users/defencedog/folders/Snagit/media/840d5f7d-4dd0-43f4-aed6-8591697084f3/10.05.2011-18.41.02.png
http://content.screencast.com/users/defencedog/folders/Snagit/media/217cf0a3-1f2e-432b-88e4-416c360945d1/10.05.2011-22.02.48.png

VIPStephan
10-05-2011, 07:31 PM
Uhm – just to clarify: Can you assert that you are legally allowed to remove the advertisement?

defencedog
10-05-2011, 08:00 PM
Uhm just to clarify: Can you assert that you are legally allowed to remove the advertisement?
I needed screenshots to make my question most understandable; if you so are alarmed just put it this way that I want to remove/hide a class in general...via javascript

Philip M
10-05-2011, 08:21 PM
I needed screenshots to make my question most understandable; if you so are alarmed just put it this way that I want to remove/hide a class in general...via javascript

Sounds like a potential violation of the TOS. :(

defencedog
10-05-2011, 08:41 PM
Now I shouldn't have posted those images; then you should have helped....

here my progress & it works...but if there is another approach do let me know, I just am a student


$(document).ready(function() {
$('div.classname').hide();
});

VIPStephan
10-05-2011, 11:20 PM
Didn’t you say “no jQuery please”?

defencedog
10-06-2011, 10:31 AM
Didn’t you say “no jQuery please”?

I said that essentially because I can't do JavaScript myself & required javascript code from brainers here...

.but if there is another approach do let me know

but they transgress whether my question is legal or not :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum