View Full Version : Display Text In Page From URL
12-01-2006, 03:53 PM
I would like to display the text from my URL page link in different parts of my web page.
So if I have a page link like the following:
I can then use that keyword name in my page content as follows:
<p>This is a paragraph to show how I would like to display this keyword name here in my content. Today is a great day and I appreciate anyone who can figure out how to display this keyword name. Thanks again to anyone who can help on this idea. I hope I have explained my idea for my keyword name in page content.</p>
12-01-2006, 05:15 PM
Hi there designguru,
does this help...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
border:1px solid #999;
<li><a id="theLink" href="http://www.domainname.com/keyword-name.html">http://www.domainname.com/keyword-name.html</a></li>
This is a paragraph to show how I would like to display this <span class="keyword"> </span> here in my content.
Today is a great day and I appreciate anyone who can figure out how to display this <span class="keyword"> </span>.
Thanks again to anyone who can help on this idea. I hope I have explained my idea for my <span class="keyword"> </span>
in page content.
12-01-2006, 07:14 PM
Thanks for all your help...your script works great but I guess there are a couple of issues that I still don't have worked out and it might just be that I can't do what I am wanting to do for this client.
My Mod Rewrite URL:
Well as you know there is no way of having any rich content in those pages pertaining to that keyword for the page to ever rank or maybe even get indexed. So my imagination wanted to have a preformatted paragraph that could just pull that url Keyword-keyword into the page so that the serps would see that each of the hundreds of product pages have good content and have the keyword throughout the text content.
So the first problem is that I see you have formatted it to work off of me actually putting the url in the page and then it read from that instead of actually reading from the url itself...I can't create thousands of pages for them for each product...I also see that when you view the source of the page and the search engines spider the page, they just see <span class="keyword"> </span> and not the actual word itself...so it does no benefit.
If you know of a solution that maybe uses xml or something that will let me do this and keep the html extension I am up for anything at this point.
12-01-2006, 11:18 PM
are you wanting this to do it for the url of the page, or a link in the page?
sounds to me like you wnat the page to load and based on what the url of that page is it writes the keywords into the page.
lemme know if this is it.
12-01-2006, 11:51 PM
Yes Brandon you are exactly correct...sorry if I wasn't clear earlier.
I would also like it to print that keyword-name without the dashes in it in the page. So it says keyword name in the paragraph instead of keyword-name.
Your help is greatly appreciated.
12-02-2006, 07:50 AM
the below link is to another thread that i replied to. it deals with something similar. it should point you in the right direction.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.