Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-27-2004, 06:09 AM   #1 (permalink)
Inactive
 
Join Date: 06-27-04
Posts: 454
iTrader: 0 / 0%
Latest Blog:
None

crazyhorse is liked by many
How to use a encode html javascript in a <a href>?

I have affilaite links that give an HTMl encode output like this

<script type="text/javascript">document.write('\u0068\u0074\u0074\u00 70\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0076 \u0037\u006e\u002e\u0063\u006f\u006d\u002f\u0072\u 0075\u006c\u0065\u007a')</script>


But i would like to use this script in a <a href="www.v7n.com/rulez".

The url www.v7n.com/rulez is the same as the above javascript.

Any suggestions.
crazyhorse is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-27-2004, 06:56 AM   #2 (permalink)
Jim
Inactive
 
Jim's Avatar
 
Join Date: 07-05-04
Location: İstanbul
Posts: 362
iTrader: 0 / 0%
Latest Blog:
None

Jim is on the right pathJim is on the right path
Put this between <head></head> tags:[code:1:63a2bad449]<script type="text/javascript">
function changeLoc(target){
window.location = target
}
</script>[/code:1:63a2bad449]
And this is the code for the link:
[code:1:63a2bad449]<a href="javascript:changeLoc('\u0068\u0074\u0074\u00 70\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0076 \u0037\u006e\u002e\u0063\u006f\u006d\u002f\u0072\u 0075\u006c\u0065\u007a');"><script type="text/javascript">document.write('\u0068\u0074\u0074\u00 70\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0076 \u0037\u006e\u002e\u0063\u006f\u006d\u002f\u0072\u 0075\u006c\u0065\u007a')</script></a>[/code:1:63a2bad449]

Link on the status bar looks very scary this way. You may remove "target" variable in JavaScript and write your link directly there if you want.
Jim is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 04:25 AM   #3 (permalink)
Inactive
 
Join Date: 06-27-04
Posts: 454
iTrader: 0 / 0%
Latest Blog:
None

crazyhorse is liked by many
cheers that worked didnt get that part about the status bar though..
crazyhorse is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 07:07 AM   #4 (permalink)
Jim
Inactive
 
Jim's Avatar
 
Join Date: 07-05-04
Location: İstanbul
Posts: 362
iTrader: 0 / 0%
Latest Blog:
None

Jim is on the right pathJim is on the right path
If you move your mouse over the link you'll see something like this on the status bar:[code:1:2b95d83ecf]javascript:changeLoc('\u0068\u0074\u0074\u0070\u00 3a\u002f\u002f\u0077\u0077\u0077\u002e\u0076\u0037 \u006e\u002e\u0063\u006f\u006d\u002f\u0072\u0075\u 006c\u0065\u007a');[/code:1:2b95d83ecf]
Users like me check the link, that they'll click, most of the time. I'd think twice before clicking something like that. :wink:
Jim is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 07:20 AM   #5 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,940
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
You can always add the following code to the anchor tag.

[code:1:4918c5c2b4]onMouseOver="window.status='Click Here';return true;" onMouseOut="window.status='';return true;"[/code:1:4918c5c2b4]

Change your link to the following. You can also add your own text instead of "click here" to "http://whatever.com".

[code:1:4918c5c2b4]<a href="javascript:changeLoc('\u0068\u0074\u0074\u00 70\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0076 \u0037\u006e\u002e\u0063\u006f\u006d\u002f\u0072\u 0075\u006c\u0065\u007a');" onMouseOver="window.status='Click Here';return true;" onMouseOut="window.status='';return true;"><script type="text/javascript">document.write('\u0068\u0074\u0074\u00 70\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0076 \u0037\u006e\u002e\u0063\u006f\u006d\u002f\u0072\u 0075\u006c\u0065\u007a')</script></a>[/code:1:4918c5c2b4]

imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is online now  
Add Post to del.icio.us
Reply With Quote
Old 07-29-2004, 12:37 PM   #6 (permalink)
Inactive
 
Join Date: 06-27-04
Posts: 454
iTrader: 0 / 0%
Latest Blog:
None

crazyhorse is liked by many
cheers that works great i will for sure use it , thank u ..
crazyhorse is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
IDN Encode and Decode harbi Domain Name Forum 0 07-29-2007 10:27 PM
How can I encode google to Z29vZ2xl in PHP? 2046 Coding Forum 2 03-02-2007 06:06 PM
Need some suggestion for html and javascript ston Web Design Lobby 2 10-04-2006 09:24 PM
What programm can you use to decode or encode aff. links? crazyhorse Google Forum 7 07-18-2004 12:07 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:50 PM.
© Copyright 2008 V7 Inc