![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
|
No, it's not possible.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 /
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Oct 2002
Posts: 6,780
|
kinda sucks.. so u must put the "http" part.. eh
__________________
_________________ I am the best ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
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: ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Check SIG!
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |