Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site



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 !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
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?
Sponsored Links
  #2 (permalink)  
Old 04-30-2008
Moderator
 

Join Date: Feb 2007
Location: The Netherlands
Posts: 4,962
Similar to:

if and else

Thread closed
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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 12:32 PM
find a word in a file, and change a word beneath it ?? vikas027 Shell Programming and Scripting 2 02-13-2008 04:23 PM
how to move word by word on command line pbsrinivas UNIX for Dummies Questions & Answers 1 11-23-2007 06:17 AM
Squid Proxy URL rewriting firdousamir IP Networking 1 11-12-2007 08: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 07:29 AM



All times are GMT -4. The time now is 11:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0