Forum Moderators: open

Message Too Old, No Replies

removing javascript

remove it from many pages all at once?

         

Homersim

7:18 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



Hi,

I use microsfot frontpage to edit my site. I use some java script as rollover text on all my pages (not shared borders).

I wanted to know if there is an easy way I can remove the javascript from all my pages very easily with out going and doing it on every single page. (i have around 500).

Jeff

flashfan

9:23 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



You may use UltraEdit to do it. UE has very nice "search/replace in files" function with regular expression support.

-F.

Homersim

10:11 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



Hi,

Thanks for the help.

ok. i am going to use the editor. I kind of want to keep my javascript for show. I read this article that said if you want to hide the javascript if you put your javascript into a text file like this:

<script language="JavaScript" src="myJavascript.js" ></script>

I was wondering if you could take a look at my index page and let me know if my source code would be right? Would google now be able to index my site better? Or is my javascript stil there and may casue a problem wityh google.

my home page is: wholesalekeychain.com

Jeff

Purple Martin

10:20 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry but you can't hide your JavaScript, not even by putting it in a separate file. There is always a way to get someone's JavaScript. This doesn't actually matter, because there's so much free code available that there's no point trying to hide your own. Just don't put secure stuff like password logins in JavaScript: use a server-side script for that instead.

Also, we're not allowed to post personal URLs here (just post the relevant bit of code instead).

brotherhood of LAN

10:23 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



> "search/replace in files"

Also worth making a copy if youre not familiar with using them. very easy to turn 5000 pages of data into 5000 blank pages, always worth a reminder :)

Homersim

10:41 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



Hi,

thanks for all your help. The reason i wanted to remove the javascript is that my listing from google.com dropped off and i read it may be becasue the spider can not crawl my whole website because the javascript.

Is there any way in keeping the javascript and allowing google to spider my whole site easier still?

thanks,
jeff

Rambo Tribble

3:37 am on Mar 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



JavaScript will only interfere with Google if it is generating the content of your pages or your links are all using the "javascript:" pseudo-URL. If it's only doing simple rollovers and such, it isn't the problem.

flashfan

3:38 am on Mar 17, 2004 (gmt 0)

10+ Year Member



There are many reasons of PR dropping. Be honest to Google; follow rules of SE opt.

Good luck.