[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-04-2006, 11:51 AM   #1 (permalink)
Senior Member
 
Prosperous's Avatar
 
Join Date: Jun 2003
Location: United States of Euphoria
Posts: 3,835
20.70 NP$ (Donate)

Prosperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud of


Question • words in link from lower case To Title Case... HOW?

I have a bunch of 500 KB html pages, each containing over 9,000 links. The link-title words are currently all lower case, but I'd like to have each word Capitalized ('Title Case').

Dreamweaver can't do this automated, so does anyone know which HTML editor (freeware, or fully functioning trial) can? I searched and searched in Google etc. hoping to find a capable HTML editor, but no luck so far.

Please have a look at this example http://captaincruiseline.com/example.htm to see what exactly I need done.

Thanks in advance,
Rob
__________________
════► US City Names? Get Yours CHEAP! [INSTANT download]
Prosperous is offline  
Old 02-04-2006, 12:11 PM   #2 (permalink)
NamePros Regular
 
moondog's Avatar
 
Join Date: Jun 2004
Posts: 476
3,677.00 NP$ (Donate)

moondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of light


Judging by your example, this task shoud be pretty straight forward to write in PHP.


All you have to do is search for the <a href> and </a> tags, take everyting between them and capitalize the words. . . It would only take about an hour to write and test this script.

-Bob
__________________
The mass purge has begun.
moondog is offline  
Old 02-04-2006, 12:32 PM   #3 (permalink)
Senior Member
 
Prosperous's Avatar
 
Join Date: Jun 2003
Location: United States of Euphoria
Posts: 3,835
20.70 NP$ (Donate)

Prosperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud of


Thanks,
But unfortunately I don't do PHP, so that's why I asked for software recommendations instead. Also, with such big files, a (browser-based) script may not be able to pull it off.



Quote:
Originally Posted by moondog
Judging by your example, this task shoud be pretty straight forward to write in PHP.


All you have to do is search for the <a href> and </a> tags, take everyting between them and capitalize the words. . . It would only take about an hour to write and test this script.

-Bob
__________________
════► US City Names? Get Yours CHEAP! [INSTANT download]
Prosperous is offline  
Old 02-04-2006, 12:52 PM   #4 (permalink)
tm
Senior Member
 
tm's Avatar
 
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,409
374.65 NP$ (Donate)

tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light


theres a way to do it in CSS if you don't want to make it permanent.
Code:
text-transform: uppercase;
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
tm is offline  
Old 02-04-2006, 12:56 PM   #5 (permalink)
Senior Member
 
Prosperous's Avatar
 
Join Date: Jun 2003
Location: United States of Euphoria
Posts: 3,835
20.70 NP$ (Donate)

Prosperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud of


Thanks, but these are not CSS based html pages, and I am not very familiar with CSS either.
Plus wouldn't what you suggested make the whole line in CAPS, as supposed to just the first letter of each word?
__________________
════► US City Names? Get Yours CHEAP! [INSTANT download]
Prosperous is offline  
Old 02-04-2006, 04:50 PM   #6 (permalink)
NamePros Regular
 
Rowan W's Avatar
 
Join Date: Dec 2004
Location: QLD, Australia
Posts: 713
1,869.00 NP$ (Donate)

Rowan W will become famous soon enough


I think what "tm" meant was to put this code in your <head></head> tag:

Code:
<head>
<style type="text/css">
a:link {
  text-transform: capitalize;
}
</style>
</head>
This will change every single link on a page to use capitalization. In Other Words The Links Will Look Like This.

Edit: here's more info - http://www.w3.org/TR/1998/WD-css2-19...html#caps-prop

Last edited by Rowan W; 02-04-2006 at 04:57 PM.
Rowan W is offline  
Old 02-04-2006, 05:45 PM   #7 (permalink)
Senior Member
 
Prosperous's Avatar
 
Join Date: Jun 2003
Location: United States of Euphoria
Posts: 3,835
20.70 NP$ (Donate)

Prosperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud ofProsperous has much to be proud of


Code:
<head>
<style type="text/css">
a:link {
  text-transform: capitalize;
}
</style>
</head>
Cheers,

That works! It was not the way I needed it, but for this purpose it will do just fine.
Thanks everyone that posted for helping find a solution.

Rob
__________________
════► US City Names? Get Yours CHEAP! [INSTANT download]
Prosperous is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot Links SQL ( Web Directory Script ) License with $24.95 discount Ferman Scripts For Sale 1 10-23-2005 12:17 AM
google ranking (Tips) lilgee Search Engines 8 10-20-2005 02:04 PM
Good Article: An SEO Checklist Ferman Search Engines 2 05-28-2005 10:51 AM
Do You Believe Kerry? Wesley The Break Room 48 05-11-2004 10:14 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:44 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85