webslingers 0 Posted April 14, 2003 I am adding links using the mod to add boxes in the colums. I can get the link to work but I would like it to open up in a new window. This is the code I have now, how can I put in the _blank attribute into it?? Thanks! '<a href=" http://www.dacemfg.com">'.Dace. '</a><br>' ); Share this post Link to post Share on other sites
webslingers 0 Posted April 14, 2003 I thought I saw something about this but cannot find it now. Can anyone help? Share this post Link to post Share on other sites
ashlyn 0 Posted April 15, 2003 '<a href=" http://www.dacemfg.com">'.Dace. '</a><br>' ); Have you tried '<a href=" http://www.dacemfg.com" target="_blank">'.Dace. '</a><br>' ); You also have a space after the href=" which shouldn't be there.. ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
webslingers 0 Posted April 15, 2003 Thank you, that worked perfectly. :D :D :D One more thing. How can I make the text of the link say, Dace.Mfg? I want the . in there. But it reads it as part of the code. Thanks. Share this post Link to post Share on other sites
ashlyn 0 Posted April 15, 2003 Try typing in . instead of the . ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
webslingers 0 Posted April 16, 2003 That didn't allow me to put the . in the name. :?: :D Share this post Link to post Share on other sites
ashlyn 0 Posted April 16, 2003 Like this... Dace.Mfg It should show as Dace.Mfg ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
webslingers 0 Posted April 16, 2003 That's exactly how I had it. The problem is it seems to leave something open in the code. I am using dreamweaver and it color codes everything. When I add that little piece of code, the rest of it turns orange... when before it was black. http://www.frankwatsonsworld.com/ss1.jpg That is the screen shot of what I'm talking about. Share this post Link to post Share on other sites
ashlyn 0 Posted April 17, 2003 I couldn't see your screenshot. Got a "file not found" ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
webslingers 0 Posted April 17, 2003 my site is down at the moment. can i email it to you? Share this post Link to post Share on other sites
ashlyn 0 Posted April 17, 2003 Sure. wolfmoon@optushome.com.au ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
ashlyn 0 Posted April 17, 2003 Try it without the space after WebSlingers. and Dace.Mfg. So it would look like this.. <a href="http://www.dace.com" target="_blank">'.Dace.Mfg.'</a> I don't use Dreamweaver, but I'm guessing that a mistake turns the line a different colour until the code is fixed? Sorry I can't help you more with this, I'm just learning the code myself :cry: ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
ashlyn 0 Posted April 17, 2003 I just noticed, in the screen shot you sent me, you have Dace#46;Mfg instead of Dace.Mfg You left out the & ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
ashlyn 0 Posted April 17, 2003 I didn't think it would work like that. I was just going by the initial bit of code posted.. I guess if it works, go with it :shock: ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Share this post Link to post Share on other sites
webslingers 0 Posted April 17, 2003 Thanks for the help. It works now. I did have the & in the screenshot, but that didn't work. I used Burts code and that worked fine. Thanks to both of you for your help. :D :D :D Share this post Link to post Share on other sites
webslingers 0 Posted April 17, 2003 I do have another rookie question. And again I did search a bit for it, but found nothing. Using the same code as above, how would I make a new line, for a new link. I know there is something I am missing. $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="http://www.dacemfg.com" target="_blank">Dace Mfg</a><br>'); To put another link under the current one, I have to take off the ; and put that at the end of the string, but what do I put at the end of the first link line? Share this post Link to post Share on other sites
jordan 0 Posted April 17, 2003 i made my own custom box with three links, two of my own and then one to the contact form that is usually in the info box. this is the code i used $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_SUPPORT_HOME, '', 'NONSSL') .'">Support Center</a><br>' . '<a href="' . tep_href_link(FILENAME_SUPPORT_TRACK, '', 'NONSSL') .'">Help Desk</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>' ); so, i think the answer you are looking for is put a space period space ( . ) inbetween each new link and end it all with the ); so your code would look like $info_box_contents = array(); ? $info_box_contents[] = array('align' => 'left', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text'? => '<a href="http://www.dacemfg.com" target="_blank">Dace Mfg</a><br>' . '<a href="http://www.dacemfg.com" target="_blank">Link 2</a><br>'); I hope this helps. Every one has been helping me lately so i want to finally help some one else! It's a Zoo in Here, Literaly... Share this post Link to post Share on other sites
webslingers 0 Posted April 17, 2003 Thank you very much. It was the "space dot space" thing that I didn't know about. That fixed it all. If I can get help on my other questions like I did with this one, I will be in top shape... :D Thanks again very much! :D :D Share this post Link to post Share on other sites