Click to See Complete Forum and Search --> : Automated keyword display for better SE ranking


shlomot
12-28-2005, 09:46 AM
Happy New Year to all.

Let's take Pamela Anderson (http://www.topsynergy.com/famous/Pamela_Anderson.asp) as an example.

Due to the shared top and left borders, the keyword “Pamela Anderson” is not included within the first 25 words of the visible text. It can be done if for example I'll replace the words "Relationships Analyst" that are boxed above the left-side menu options with "Pamela Anderson".

I have over a thousand pages like this.

If I'll have an include file where I CASE different scenarios of strings that are showing in the URL - it will do; or maybe you have a better solution.

So the CASE will look something like that:

CASE url includes "Pamela_Anderson"
variable="Pamela Anderson"
CASE url includes "Demi_Moore"
variable="Demi Moore"
...
END CASE
WRITE variable

The only problem is that I don't have a clue on how to put all of that together and with the right syntax. I am less than a novice ASP programmer.

Can you please help?

russell_g_1
12-29-2005, 02:37 PM
not sure i understand what you're after...

shlomot
12-29-2005, 10:47 PM
Thanks for your reply, Russell.

I've been helped already through another forum.

Happy New Year to you and yours.

ProWeb
12-30-2005, 06:32 AM
Can you post your findings please?

shlomot
12-31-2005, 11:05 PM
Thanks to some productive suggesstions, I didn't go with the CASE structure, but rather by converting filenames to text keywords. Here's the script in the new include file:

<%
' Getting URL string
urlname = request.servervariables("url")

' Stripping out portions befor file name
do while instr(urlname, "/") > 0
urlname = mid(urlname, instr(urlname, "/") +1, len(urlname))
loop

' Stripping out file extention
urlname = mid(urlname, 1, instr(urlname, ".") -1)

' Replace the "_" with " "
theme = replace(mid(urlname, 1, len(urlname)), "_", " ")

' Write variable content
response.write "<p>" & theme &"</p>"
%>