Trying to add a qucklink to CZModules

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Trying to add a qucklink to CZModules
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
I stripped a bit of code from another info block called Columns to add a quick link to set our site as a home page that looked like this...

$content .= "<img src=images/blocks/home.gif height=\"16\" width=\"16\"> <a href=\"#\" title="._BIEU." onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('$nukeurl');return false\">"._BSET."</a><br>\n";

I edited to duplicate what Telli's links look like so now the line is this...

$QuickLinks .= "<table border=0 cellpadding='1' cellspacing=1><tr><td width='16'><img src=\"$arrowimg\" align=\"absmiddle\" border=\"0\"></td><a href=\"#\" title="._BIEU." onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('$nukeurl');return false\">"._BSET."</a><br>\n";

The code works fine but the image is not lined up with the text...the text "set as home page" come first then breaks and then shows the folder icon.
Any ideas? Click my sig if you wanna see what I mean.

Thanks!




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
Staffie
CZ Revered Member
 Codezwiz Site Donator
uk.gif
Occupation: Investigation Officer
Age: 40
Gender: Male
Website:
Status: Offline
Joined: May 27, 2003
0.18 posts per day
Posts: 1454
Points: 401,085
   
try takin out the <BR> at the end of the code. dunno if this will help but it usually makes it go onto a new line.




_________________
Back to top Reply with quote
#3   re: Trying to add a qucklink to CZModules
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Nope..didn't have any effect at all




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   re: Trying to add a qucklink to CZModules
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
   
You forgot the </td></tr></table> on the end of it.




_________________
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
#5   re: Trying to add a qucklink to CZModules
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
LOL I just found that and clicked here to post it! That was exactly it...looks good now




_________________
[ Register or login to view links on this board.]
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