Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Can anyone tell me what this code does?
Old 08-10-2009, 07:46 AM Can anyone tell me what this code does?
Junior Talker

Posts: 3
Name: Alejandro
Trades: 0
Sorry if this isn't the right place to put this.
I need to know what this code does, i have very basic html knowledge .If anyone can help me any info is very appreciated.

The full code can be seen at www.undermore.com by going to contact section and opening the source code from firefox.

The Homepage is all fake.
Some site is hidden behind this code and want to enter it.
I also found out that two input boxes are hidden, and when i set them to be visible (by removing the hidden tag), it shows two boxes, one with a number (name=ID), and other with a pair of words (name=subject). If i press the submit button with the default ID number (16110) it says that the email has been sent, but if i change the number a bit, it opens other website depending on the number i wrote in. Changing the SUBJECT doesn't do anything.

Here is the code:

function SwapImage()
{
var doc=document, args=arguments;
doc.$imgSwaps = new Array();
for(var i=2; i<args.length; i+=2)
{
var elem=FindObject(args[i]);
if(elem)
{
doc.$imgSwaps[doc.$imgSwaps.length]=elem;
elem.$src=elem.src;
elem.src=args[i+1];
}
}
}

function FindObject(id, doc)
{
var child, elem;
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
{
for(var i=0; i<child.length; i++)
{
elem=FindObject(id,child[i]);
if(elem)
return elem;
}
}
var frm=doc.forms;
if(frm)
{
for(var i=0; i<frm.length; i++)
{
var elems=frm[i].elements;
for(var j=0; j<elems.length; j++)
{
elem=FindObject(id,elems[i]);
if(elem) return elem;
}
}
}
return null;
}

<td><a href="http://undermore.com/"><img id="bv01005" src="info_files/bv01005.gif" alt="http://undermore.com" onmouseover="SwapImage(1,1,'bv01005','bv01005_over .gif')" onmouseout="SwapImage(0,1,'bv01005','bv01005.gif') " ></a></td>
<form name="EMailForm" method="POST" action="http://formmail.servage.net/" enctype="multipart/form-data">
<input name="id" value="16110" type="hidden">
<input name="subject" value="FORM SUBJECT" type="hidden">
<input name="realname" type="text">
<input name="email" type="text">
Nombre:
E-Mail:

<input name="enviar" value="Enviar" type="submit">

</form>

Last edited by Dreamcaster; 08-10-2009 at 10:31 AM..
Dreamcaster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2009, 10:26 AM Re: Can anyone tell me what this code does?
Junior Talker

Posts: 3
Name: Alejandro
Trades: 0
Edited By Me

Last edited by Dreamcaster; 08-10-2009 at 10:32 AM..
Dreamcaster is offline
Reply With Quote
View Public Profile
 
Old 08-12-2009, 08:22 AM Re: Can anyone tell me what this code does?
Junior Talker

Posts: 3
Name: Alejandro
Trades: 0
Noone could help ? :S
Dreamcaster is offline
Reply With Quote
View Public Profile
 
Old 08-13-2009, 09:30 AM Re: Can anyone tell me what this code does?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Looks like an image swapper, for rollovers. Do you have any specific questions about it?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Can anyone tell me what this code does?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24054 seconds with 12 queries