Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wizardsandwars or another search engine guru..


jrwrestling

Recommended Posts

Well, all I've got is the js functions, and to figure out what they are being used for, I'd probably need to see where they are being called form. But here;s the function I think is in question.

 

function CSSearchEngine(action) {
var form = action[1]
var elem = action[2]
var theEntry  
if(action[3]==true) { theEntry = action[4] } 
else { theEntry = document.forms[form].elements[elem].value }
var type=action[5];
if(type==0) engine="http://search.adobe.com/cgi-bin/query?mss=simple&pg=q&what=web&fmt=.&where=www_search_main&superq="+theEntry+"&rd=all&q="+theEntry+"&x=39&y=10" //Adobe.com
else if(type==1) engine="http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q="+theEntry //Altavista   
else if(type==2) engine="http://groups.google.com/groups?q="+theEntry+"&hl=en&lr=&safe=off&btnG=Google+Search&site=groups"; //Google Deja News (Usenet)  
else if(type==3) engine="http://www.excite.com/search.gw?trace=a&search="+theEntry; //Excite
else if(type==4) engine="http://www.search.hotbot.com/hResult.html?SM=MC&MT="+theEntry+"&DV=7&RG=.com&DC=10&DE=2&OPs=MDRTP&_v=2&DU=days&SW=web&search.x=23&search.y=8"; //HotBot  
else if(type==5) engine="http://www.google.com/search?q="+theEntry+"&btnG=Google+Search" //Google
else if(type==6) engine="http://search.msn.com/results.asp?RS=CHECKED&FORM=MSNH&v=1&q="+theEntry; //MSN
else if(type==7) engine="http://www.lycos.com/cgi-bin/pursuit?query="+theEntry+"&matchmode=and&cat=lycos&x=33&y=10"; //Lycos
else if(type==8) engine="http://shopper.cnet.com/shopping/search/results/1,10214,0-1257,00.html?tag=st%2Esh%2E1257%2Esbsr&qt="+theEntry+"&cn=&ca=1257" //Shopper.com
else if(type==9) engine="http://search.excite.com/search.gw?c=web&lk=webcrawler&onload=&s="+theEntry;//Webcrawler
else if(type==10) engine="http://search.yahoo.com/bin/search?p="+theEntry //Yahoo
if (theEntry=="") { alert("Please enter a search keyword!") } 
else  { newWindow=window.open(engine, action[6],"toolbar,location,directories,status,menubar,scrollbars,resizable=1") }
}

 

Those links basically just pass each search engine a query for this websites name, but I'm not sure what benifit you'd get from doing that, or why you'd want to do that.

 

BTW, don't try to go to this website if you are at work, or are underage. There is some explicit material in there.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

LOL, no, not me, silly.

 

I meant that the site that owns this code. If you browse to one of the embedded links in this code, for example...

http://www.excite.com/search.gw?trace=a&se..."+theEntry

 

It displays a website called "theEntry". If you click on that link from the search engine, you will see explicit material.

 

Thanks for watching my back though! :D

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

No no no ;)

 

The "+theEntry+" is simply a form value passed to the script, could be "apples", "monkey", "games", "oscomemrce" or whatever.

 

Then the script will presumably search for the inputted variable on a number of Search Engines, and produce the results...

 

That's my take on it.

Link to comment
Share on other sites

Burt, you are correct, however, if you browse to that link, you will see that 'theEntry' is actually a website, and it is first in the list on each of those search engines.

 

The intention is to pass a keyword to a seach engin that will display the owners website in the top position. Like if I searched for 'wizardsandwars'.

 

I'm just not sure why this would benifit anyone.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

No, it;s just a tool to search multiple search engines from one page:

 

if (theEntry=="") { alert("Please enter a search keyword!") } 
else ?{ newWindow=window.open(engine, action[6],"toolbar,location,directories,status,menubar,scrollbars,resizable=1") }

 

if theentry is not filled in, pop u a javascript saying "enter a keyword". Else open up a new window using the selected search engine and the keyword(s) that are in the variable "theentry".

 

Just a simple script to allow searching of search-engines without visiting them.

Link to comment
Share on other sites

Ah, yeah, that makes sense.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I checked for that...

 

The website is:

 

a) totally non-pornographic.. its a wrestling store.

B) has no search functions anywhere in the site.

 

www.dangable.com

 

check it for yourself, check why this may be inbedded.

Link to comment
Share on other sites

could you point out the page you found that java?

 

I didn't see it, and I thought I wnet through the site pretty throughly.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Yeah, but that page is just all js functions.

 

What I mean is, I don't see anywhere on the website that it calls that js function, CSSearchEngine.

 

In other words, it appears to be a functions that isn't being used. It's probably just a standard js library the developer that created that website always uses.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...