Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-09-2008, 01:32 PM   #1
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
making clickable link without http part?

is it possible to make a working link without the http part??

example:

<a href="www.google.com"> test </a>

obviously if u put that in a html file it wont work....
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 01:32 PM   #2
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
No, it's not possible.
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 01:34 PM   #3
CyberHustler
Masterbaiter
 
Industry Role:
Join Date: Feb 2006
Posts: 26,194
I think only if you're linking to a page on the same site. You can use a /
CyberHustler is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 01:34 PM   #4
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
kinda sucks.. so u must put the "http" part.. eh
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 01:36 PM   #5
Brad Gosse
Confirmed User
 
Brad Gosse's Avatar
 
Join Date: Jan 2002
Location: Carpal Tunnel
Posts: 2,616
the only way would be to use an htaccess redirect but the http:// would need to be in htaccess
__________________
Free Clipart
Brad Gosse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 01:51 PM   #6
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
why would you wanna do that?
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 02:28 PM   #7
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
Quote:
Originally Posted by grumpy View Post
why would you wanna do that?
yeah?
what's the deal about it?
what are you trying to achieve?
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 03:14 PM   #8
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Yes, but it involves intercepting the click event with JavaScript.

Essentially, you need http://, but it's possible without altering the markup that you provided above. All of your links could look like what you described.

Only a few lines of code assuming you're a JavaScript ninja armed with jQuery.
__________________
subarus.

Last edited by calmlikeabomb; 10-09-2008 at 03:16 PM..
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 03:19 PM   #9
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
i hate that shit too, few times i make such links in html source and then i get www . mysite . com / www . thaturlfucking . com . html
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2008, 04:52 PM   #10
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
so why do you wanna do this..?

http://calmdev.com/gfy/click.php

i wouldn't suggest using js for the task, but it's possible...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Intercept Click</title>
    <script type="text/javascript" src="http://assets.fit.edu/src/js/jquery/jquery.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
        $('a').click(function() {
            document.location = 'http://' + $(this).attr('href');
            return false; 
        });
    });
    </script>
</head>
<body>
    <a href="www.google.com">Google</a>
</body>
</html>
__________________
subarus.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.