Results 1 to 1 of 1
Threaded View
-
16th Mar 2012, 12:05 AM #1OPMemberWebsite's:
ps3games.ORGHow to do this in javascript/php?
I'm trying to show a certain link on my status bar and when the person clicks it it goes to a different one.
The code I've put so far is this:
Code:<script language="javascript" type="text/javascript"> function redirect(URL) { document.location=URL; return false; } </script> <center><h2><a href="http://www.showthislink.org/download/<?php the_title(); ?>.zip" onclick="return redirect('http://www.gotothislink.com') rel="nofollow"><font color="FF0000"> Click Here to Download <?php the_title(); ?></font></center></a></h2>
I dont know much about coding, I just search google and read about code that I want to to use. Do I have to put any special code on the top of the page to let it know that I'll be using javascript later?
ADDED: I got the code above from this site:Code:http://roshanbh.com.np/2008/08/different-status-bar-text-hyperlink-mouseover.html
---------- Post added at 05:05 PM ---------- Previous post was at 03:56 PM ----------
I guess I have to put them in "echo" tags?
How do I do this, and where on the code should I add them?thizzladen Reviewed by thizzladen on . How to do this in javascript/php? I'm trying to show a certain link on my status bar and when the person clicks it it goes to a different one. The code I've put so far is this: <script language="javascript" type="text/javascript"> function redirect(URL) { document.location=URL; return false; } Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Need Javascript Help
By Netguy in forum Web Development AreaReplies: 7Last Post: 19th Mar 2011, 03:24 PM -
JavaScript Kit
By Daniel in forum Useful SitesReplies: 0Last Post: 7th Mar 2011, 06:48 PM -
javascript help
By jokerhacker in forum Web Development AreaReplies: 4Last Post: 27th Dec 2010, 11:02 AM -
Help About JavaScript
By macypro in forum Technical Help Desk SupportReplies: 1Last Post: 7th Dec 2010, 12:23 AM -
help with some javascript
By bumilad20 in forum Web Application/Script SupportReplies: 2Last Post: 3rd Jun 2010, 05:01 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...