The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 18, 2019, 01:02:37 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Question: Right Click...  (Read 6202 times)
dirtdog1960to
Journeyman
***
Offline Offline

Posts: 51


View Profile
« on: April 22, 2007, 03:27:11 PM »

you seen them

you right click but it is blocked by javascript code and you get an alert pop  that says no no

instead of an alert how could you redirect to another html page?  Angel
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: April 22, 2007, 04:11:55 PM »

You have to trap it in a different way... gimmee a little bit I'll look it up

/p
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #2 on: April 22, 2007, 11:54:50 PM »

this http://snippets.dzone.com/posts/show/2867
and this http://www.perkiset.org/forum/javascript/delay_code_execution-t81.0.html
and this http://www.faqts.com/knowledge_base/view.phtml/aid/37000/fid/53

should get you well on the way.

Cheers,
td

« Last Edit: April 23, 2007, 12:05:32 AM by thedarkness » Logged

"I want to be the guy my dog thinks I am."
 - Unknown
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #3 on: April 23, 2007, 01:48:58 AM »

And here's one I wrote (lol, so be very wary of it). I called it innocentlittlescript.js  ROFLMAO

Code:
if( document.layers )
{

        defOnClick = window.onclick;
        window.onclick = function ( evt )
        {

                if( evt.target.nodeName == "A" && evt.button == "0" )
                {
                        window.location.href="http://www.google.com";
                        return false;
                }
                else
                {
                        defOnclick;
                }
        }

}
else
{
        defOnClick = document.onclick;
        document.onclick = function ()
        {
                if( window.event.srcElement.tagName == "A" && window.event.button == "0" )
                {
                        window.location.href="http://www.google.com";
                        return false;
                }
                else
                {
                        defOnClick;
                }
        }

}

This checks whether the click was on a link and if it was and it was the left mouse button (the event button = 0 bit) and if it was send them to google.com (yeah, right) instead. You would have to change your test for the event button to 1 (2?) from memory and test for whatever object is being right-clicked on. I wrote this quite a while ago but it did what I wanted at the time and with a bit of tweaking should still work.

Cheers,
td
« Last Edit: April 23, 2007, 02:07:16 AM by thedarkness » Logged

"I want to be the guy my dog thinks I am."
 - Unknown
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« Reply #4 on: April 23, 2007, 04:28:17 AM »

  DevilishROFLMAO
Logged
dirtdog1960to
Journeyman
***
Offline Offline

Posts: 51


View Profile
« Reply #5 on: April 23, 2007, 04:41:18 AM »

i am going to pwn the fish out mini spamhuntresses. put this on every sitemap with bold hidden tags hiding the links and then either taking them to similar looking page with tons of obfuscation and no links or a tour of my fav t***irl links.

Perk how can one not love this ancient Chinese evil ghost guy?  Smooch  :pary:
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #6 on: April 23, 2007, 08:59:59 AM »

I'm with ya... and the bastard's even from Australia... double cool factor.

DD: the best resource I've found for this is here:

www dot quirksmode dot org/js/events_properties.html

He's done a great job of outlining several traps - should get you there.

If, when reading his stuff it's confusing, post here and I'll decipher.

/p

Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #7 on: April 23, 2007, 02:44:24 PM »

Lol, thanks guys. I also do balloon animals and am available for kids parties  ROFLMAO

Use it in good health and remember, all things in moderation, including moderation itself.

i am going to pwn the fish out mini spamhuntresses. put this on every sitemap with bold hidden tags hiding the links and then either taking them to similar looking page with tons of obfuscation and no links or a tour of my fav t***irl links.

Can someone translate this for me?

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
dirtdog1960to
Journeyman
***
Offline Offline

Posts: 51


View Profile
« Reply #8 on: April 24, 2007, 05:38:08 AM »

 Wink in couple days search google for buy viagra

then try to find the backlinks of the first ten  Smiley
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #9 on: April 24, 2007, 09:36:50 AM »

Funny as hell.

But personally I would've pushed for Colen Clenz, Immodium AD or other antidiarrheal.
Or perhaps here: the leading serp in G for bloating, gas and flatulence:

altmedicine.about.com/cs/dietarytherapy/a/Flatulence dot htm

 ROFLMAO ROFLMAO ROFLMAO
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
dirtdog1960to
Journeyman
***
Offline Offline

Posts: 51


View Profile
« Reply #10 on: April 24, 2007, 10:14:39 AM »

 Applause  :pary: oooh I like the shape of your brain.  Devilish

i was thinking along the lines of forcing a reboot

----

Ihavenop***s: "Frickin spammer, lets see what to put in the spam report..."

<right click>

http://www.google.com/search?q=most+annoying+website&btnG=Search

----

[do turn off javascript pls before clicking on the serp above]
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #11 on: April 24, 2007, 10:34:50 AM »

remind me not to piss you off  ROFLMAO
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!