string to make links open in new window.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   string to make links open in new window.
websolution
CZ Active Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
hello all,

I have a marquee with links to other sites, but the links are opening in the main page and not in a seperate window.

Does anny of you know the right PHP line to include in the script?

<?php
if (eregi("block-Affiliates.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

//Add your links and pictures here. If you wish to add more links then create a $link4 = ""; and $pic4 = ""; then add an extra bit of code into the $content! DONT EDIT UNLESS YOU KNOW WHAT YOUR DOING!
$link1 = "http://www.nukecops.com";
$pic1 = "http://www.nukecops.com/images/nukecopslink.gif";

$link2 = "http://www.phpnuke.org";
$pic2 = "http://phpnuke.org/images/topics/phpnuke.gif";

$link3 = "http://www.nukgle.com/from.php?4665";
$pic3 = "http://nukgle.com/main/images/static/2.jpg";

$link4 = "http://www.codezwiz.com";
$pic4 = "http://www.codezwiz.com/gallery/button6.gif";

$link5 = "http://www.mtechnik.net";
$pic5 = "http://www.mtechnik.net/button3.gif";

//Dont edit this unless you know what your doing!!
$content  =  "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'><center> <STYLE=\"text-decoration: none\"><font color=\"#666666\"><b>Affiliates</b><br><br>
<a href=\"$link1\"><img src=\"$pic1\"></a><br><br>
<a href=\"$link2\"><img src=\"$pic2\"></a><br><br>
<a href=\"$link3\"><img src=\"$pic3\"></a><br><br>
<a href=\"$link4\"><img src=\"$pic4\"></a><br><br>
<a href=\"$link5\"><img src=\"$pic5\"></a></center>";
$content  .= "
<br>
Brought by
<br>
<a href=\"http://www.web-solution.nl\">Web Solution &copy</a>";

//(c) Jack Collier
?>


I have included the source in here icon_mrgreen.gif


THNX in advance,

And a Happy new year to all of you



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
<a href=\"$link1\" target=\"_blank\"><img src=\"$pic1\"></a><br><br>
<a href=\"$link2\" target=\"_blank\"><img src=\"$pic2\"></a><br><br>
<a href=\"$link3\" target=\"_blank\"><img src=\"$pic3\"></a><br><br>
<a href=\"$link4\" target=\"_blank\"><img src=\"$pic4\"></a><br><br>
<a href=\"$link5\" target=\"_blank\"><img src=\"$pic5\"></a></center>";


An a Happy New Year to you to.

Telli



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum