Redirect on mouseover body

  • corvette6769
  • Born
  • Born
  • User avatar
  • Posts: 2
  • Loc: Central Illinois, USA

Post 3+ Months Ago

I have had two members here tell me that there are multiple threads addressing this, however after another two hours of searching every conceivable search term and keywords I can imagine, I can not find the threads to which they refer.

What I want is a redirect that is activated on mouseover the web page body.

Right now I am using:

Code: [ Select ]
<SCRIPT LANGUAGE="Javascript">
browser= navigator.appName;
if (browser == "Netscape")
window.location="TheTargetURL"; else window.location="TheTargetURL"
</SCRIPT>
</Head>
<body>
  1. <SCRIPT LANGUAGE="Javascript">
  2. browser= navigator.appName;
  3. if (browser == "Netscape")
  4. window.location="TheTargetURL"; else window.location="TheTargetURL"
  5. </SCRIPT>
  6. </Head>
  7. <body>


Any help would sure be appreciated.

The following does exactly what I need, but I do not possess the know how to decipher the hex code containing the script.

Code: [ Select ]
<body onMouseOver="eval(unescape('%6C%6F%63%61%74%69%6F%6E%2E%68%72%65%66%3D%27%68%74%74%70%3A%2F%2F%77%77%77%2E%66%69%6E%61%6E%63%69%61%6C%2D%66%61%6D%69%6C%79%70%6C%61%6E%6E%69%6E%67%2E%63%6F%6D%2F%27%3B'));"
bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000">
  1. <body onMouseOver="eval(unescape('%6C%6F%63%61%74%69%6F%6E%2E%68%72%65%66%3D%27%68%74%74%70%3A%2F%2F%77%77%77%2E%66%69%6E%61%6E%63%69%61%6C%2D%66%61%6D%69%6C%79%70%6C%61%6E%6E%69%6E%67%2E%63%6F%6D%2F%27%3B'));"
  2. bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000">
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

Code: [ Select ]
<body onMouseOver="location.href='http://www.yahoo.com/';"
bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000">
  1. <body onMouseOver="location.href='http://www.yahoo.com/';"
  2. bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000">
  • corvette6769
  • Born
  • Born
  • User avatar
  • Posts: 2
  • Loc: Central Illinois, USA

Post 3+ Months Ago

Thank you. That is what iIneeded.

Now that I decoded the hex, I see that the code is:

Code: [ Select ]
<body onMouseOver=\"eval(unescape(\'location.href='http://www.*******.com/';\'));\"
bgcolor=\"#ffffff\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\">
  1. <body onMouseOver=\"eval(unescape(\'location.href='http://www.*******.com/';\'));\"
  2. bgcolor=\"#ffffff\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\">


What is the advantage in using the "eval" ?
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

It evaluates a string of JavaScript code, and if the argument represents one or more JavaScript statements, eval performs the statements. It might be necessary in that case because of the use of the unescape function that returns a string. If the string returned is a javascript statement, then it will be performed.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

please use code tags when posting, thanks
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

I'm curious as to the need for a javascript mouseover, on the body of page, redirecting to a different page - seems like a pretty useless feature to me. What is the point?

Sorry if I'm just being dumb
  • Sabu
  • Beginner
  • Beginner
  • Sabu
  • Posts: 47

Post 3+ Months Ago

So that someone can submit custom html to certain service websites that redirects the visitor, while bypassing any filters that usualy look for ONLOAD and SCRIPT, neither of which make an appearance in this particular code.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 83 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.