|
Intorduction
I have this adsense type of thingy, which uses an XML file to send a list of text adverts.
The thing is with the text for the link. I want to have one line of text, that will both be used for the link in the a tag, AND, be on show in the Advertisement, and be spaced out and with Caps letters at the start of each word.
One method I used is to just have two tags, one for the spaced out display, and another for the link in the A tag. However, to save on many things like bandwidth, I want to have just one tag, which contains the Spaced out word version, then to have Javascript strip that down to just lowerCase URL string.
Examples are
Like where the XML file as the text My Domain . com that will be what will be on show. Then to have javascript change that to mydomain.com.
I do already know..
.... how to change it all to lower case, and that part of it works well
But I ask help with...
... How do I get it to strip spaces?
I have tried replace(' ','') but this did not work.
footer ambelon
The said XML file in the past always had two dom-elements, one for the spaced out text version, and the other for the A tag href. But I want to save on file size and bandwidth etc.
I am keen to have it spaced out like this because, while the person may not be interested in the product at that moment, they may have some interest in it, and would remember the domain name stated with it, IF, and only IF, it is layed out in a very easy to read format.
|