Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,323 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,773 people online right now. Registration is fast and FREE... Join Now!




I need help inserting a link in an xml file

 
Reply to this topicStart new topic

I need help inserting a link in an xml file

bassundergrace
3 Sep, 2008 - 12:37 PM
Post #1

New D.I.C Head
*

Joined: 3 Sep, 2008
Posts: 1

This is a piece of code from an xml templete I purchased. I decided to add a blog to my site, and while I was able to add it to my menu, I can't seem to figure out how to make this open up in a new window instead of going to another page. I tried changing the menu path with no luck. Any help would be appreciated.



CODE
<menu>
          <menuText>BLOG</menuText>
          <menuColorOut>0xFFFFFF</menuColorOut>
          <menuColorOver>0xCCCC66</menuColorOver>
        <menuPath>emmett/contact.swf</menuPath>
    </menu>    

User is offlineProfile CardPM
+Quote Post

capty99
RE: I Need Help Inserting A Link In An Xml File
3 Sep, 2008 - 12:51 PM
Post #2

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,161



Thanked: 16 times
Dream Kudos: 550
My Contributions
you wouldn't change this in the xml. you change it where this piece of xml is used in your sites template.

at some point in the template it says something like
CODE
<a href="(and then the menuPath from the xml gets inserted here)">(menuText inserted here)</a>


so then you would change the property of the actual hyperlink by...
CODE

<a target="_blank" href=...(rest of the code from before)


so all you have to do is add the target in there.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:33AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month