HTML/Java script Question about hiding a piece of code via url?

nicholas j

New member
I know a bit of html and almost no java script... however i would like to know if there is a code in either language or another that will allow me to hide an element based on the web address.

ex:
If you type in an address bar from a completely different site:

url: www.whatever.com/
everything is normal

but if the url is: www.whatever.com/?popup or www.whatever.com/#popup an element(ex: <div id="popup">) is hidden on the opening of the page.

I already have a piece of java script that hides things at the click of a link, but it doesnt work w/ the address. it only works if you are already on the page, not with loading the page.

Site: http://ccstudy.webatu.com
Element that im trying to hide: Wibiya Bar(located at bottom of code)

BTW: if you use IE, you will not be able to view the site unless you stop it before it redirects... The site is not currently compatible w/ IE. I will develop an alternate sub address for IE users when the site is complete.
 
Back
Top