HTML Link question (noob here sorry)

oneofusjustin

Member
Feb 18, 2008
161
0
71
Ok so IM making a Blog on a different URL from the parent site. However the whole point of the blog is to drive traffic to the parent site. So id like to reuse the links to save myself alot of work. so for instance teh parent site has a "sports page" with a list of links to a page the deals with each specific team, there are 100s. So i viewed the pages source info and was able to get the whole list of links all nice and clean to the new blog. However when you click the links they dont work here is what they look like

Code:
<a class="mainpage_sports_link" href="ResultsGeneral.aspx?pcatid=1&amp;ccatid=63&amp;gcatid=16&amp;kwds=Chicago%20White%20Sox" target="_self">Chicago White Sox</a>


when u click this link that just says "chicago white socks" on the blog it takes you to a page not found ON the BLOG site, not the original parent site that the link is from. So my guess is the links are really just links to a search result. is there anyway to tell it to search the parent site instead of the page the link is on?
 
Last edited:

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
The URLs you harvested don't have any server identities in them. You need the domain and server name, i.e. "//www.mysite.com/ResultsGeneral.aspx..."
 

oneofusjustin

Member
Feb 18, 2008
161
0
71
awesome that works! hmm can you think of anyway i could like copy and past all my code into word or something and use search and replace to inject that into all the links? im messing with it but cant seem to find a way to get it to put it in right since its in a long stream and not just words
 

oneofusjustin

Member
Feb 18, 2008
161
0
71
Code:
<a onclick="return tnNav2Evt388(this,'');" href="#">6 Chix</a>

what about here how would it look with a site address in it properly?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Code:
<a onclick="return tnNav2Evt388(this,'');" href="#">6 Chix</a>

what about here how would it look with a site address in it properly?

That one isn't going to work, and along with the other illustrates the problem with simply grabbing other people's url's from their pages. That calls a javascript function which you don't have.