The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get the location of word in a string Vrgurav UNIX for Dummies Questions & Answers 3 03-07-2008 09:32 AM
find a word in a file, and change a word beneath it ?? vikas027 Shell Programming and Scripting 2 02-13-2008 01:23 PM
how to move word by word on command line pbsrinivas UNIX for Dummies Questions & Answers 1 11-23-2007 03:17 AM
Squid Proxy URL rewriting firdousamir IP Networking 1 11-12-2007 05:24 AM
Can a shell script pull the first word (or nth word) off each line of a text file? tricky Shell Programming and Scripting 5 08-17-2006 03:29 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-27-2008
Registered User
 

Join Date: Mar 2008
Posts: 36
Rewriting a word from location

I am using:

Quote:
my $location=url_param("search");
..to get the word that is being searched. What I am looking to do,
is to rewrite the word and us it in css:

Quote:
<td class="$new_location">
Sort of like this javascript:

Quote:
<script type="text/javascript">
var search="$location"
if (search=="word_that_changes_css")
{
document.write("new_css")
}
else
{
document.write("default_css")
}
</script>
Hopefully I am making myself clear.
Any ideas how I could do this?
Forum Sponsor
  #2  
Old 04-30-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,328
Similar to:

if and else

Thread closed
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0