/    Sign up×
Community /Pin to ProfileBookmark

im just learning javascript as we speak
and im having a hard time understanding a few things

here is what i have and what i need
i have a site with links on it,
and after every link is clicked
i want the page redirect to another page

im pretty sure this is simple, but im a n00b to javascript and … yeah
could somebody please help it would be much appreciated

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@JMRKEROct 07.2009 — It would appear that you do not need javascript to perform this function. :eek:

Just use the anchor tag of HTML

<i>
</i>&lt;a href="http://www.google.com"&gt;Google&lt;/a&gt;
&lt;a href="http://www.webdeveloper.com"&gt;WebDeveloper&lt;/a&gt;

Add as many links as you want ...
Copy linkTweet thisAlerts:
@robertbarzykauthorOct 07.2009 — thanks for the reply,

but im sorry, i didnt really clarify myself much

let me restate what i need help with

im writing a site for someone, to help people get thousands of myspace requests (sounds pretty dumb i know) but bare with me

each person needs to get above 0 points a day

nobody with negative points will be show on the add page

after adding each person i would like the button to fade out(i can do this)

but after every link on the page has been clicked and faded out i want the main page to redirect to a new page

so basically here are the 2 sites im using

when all the add buttons are clicked and faded on unrealart.org/first.php

i want it to auto redirect or refresh to unrealart.org/riders.php


here is my code so far


# [CODE]<?php


#


# $ip = $_SERVER['REMOTE_ADDR'];


#


# mysql_connect("localhost", "unrealar_me", "xxxxxx") or die(mysql_error());


# mysql_select_db("unrealar_login") or die(mysql_error());


#


# mysql_query("UPDATE clicks SET clicks=0 WHERE ip='$ip'")


# or die(mysql_error());


#


# ?>


#


# <html>


# <head><title>Get Famous</title>


# <LINK REL=StyleSheet HREF="main.css" TITLE="Contemporary">


# </head>


# <body>


#


# <center><div class="header";>


# <?php


# $fid = $_GET['user'];


#


# ?>


# <?php


#


#


#


# $start='<img src="';


# $end='">';


#


# mysql_connect("localhost", "unrealar_me", "xxxxxx") or die(mysql_error());


# mysql_select_db("unrealar_images") or die(mysql_error());


#


# $result = mysql_query("SELECT * FROM header")


# or die(mysql_error());


#


# while($row = mysql_fetch_array( $result )) {


# // Print out the contents of each row into a table


# echo $start." ".$row['head']." ".$end;


#


# }


# echo "</table>";


# ?>


# </div>


#


#


# <center><div "class="riders";>


# <?php


# $add='<a href="http://www.unrealart.org/addme.php?friendid=';


# $me='" target="_blank"><img border="0" src="addme1.gif"> ';


#


# mysql_connect("localhost", "unrealar_me", "xxxxx") or die(mysql_error());


# mysql_select_db("unrealar_login") or die(mysql_error());


#


# $result = mysql_query("SELECT * FROM people WHERE points>=0")


# or die(mysql_error());


#


# while($row = mysql_fetch_array( $result )) {


# // Print out the contents of each row into a table


# echo $add."".$row['friendid']."".$me;


#


#


# }


# echo "</table>";


#


# </div></center>


# </body>


# </html>


#


#


#[/CODE]
Copy linkTweet thisAlerts:
@JMRKEROct 07.2009 — Sorry, I have a very limited knowledge of PHP

and I would be of no help with this to you.

You might also try the PHP forum if you get no

responses on this forum

Good Luck!

?
Copy linkTweet thisAlerts:
@robertbarzykauthorOct 07.2009 — well do u know of any javascript that can get the job done ?

if you go to unrealart.org/first.php

there are add buttons, when there all clicked

i want it to redirect to unrealart.org/riders.php

if not, its cool

thanks man !
×

Success!

Help @robertbarzyk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...