SourceTec Software

It is currently Sat Apr 19, 2014 11:05 am

All times are UTC + 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Aug 06, 2006 7:50 am 
Offline
Member

Joined: Sun Aug 06, 2006 7:41 am
Posts: 1
In the Sothink HTML Editor, is there a way to may changes to text across the entire site with one action instead of editing each page? For example, a copyright statement and/or a terms of service link at the bottom of a page. Any info will be greatly appreciated. Thank You.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 12:54 am 
Offline
Support Team
Support Team

Joined: Fri Jan 28, 2005 5:15 pm
Posts: 1866
Hello geohio,

Sorry for the reply delayed.

Current version of Sothink HTML Editor does not have the function you expected.

Thanks a lot for your understanding.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 05, 2006 5:20 am 
Offline
Member

Joined: Sun Mar 06, 2005 2:38 am
Posts: 13
What you want to do is turn those HTML pages into PHP pages and use includes. Saves soooo much time and aggravation.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 17, 2007 12:32 am 
Offline
Member

Joined: Fri Mar 02, 2007 9:35 pm
Posts: 6
Another way which I use is to create a main javascript file and then place some code on every page you want to change referencing the javascript page. for example,

Create .js file for example text.js and copy the code

<!-- Change text on All Pages -->
function replacePhrase(){
var aTags = document.getElementsByTagName('span');
var txtNode = document.createTextNode(' YOUR TEXT GOES HERE! ');
for( var i=0; i < aTags.length; i++){
className = aTags[i].className && aTags[i].className != '' ? aTags[i].className : aTags[i].getAttribute('class');
if( className == 'replace')
aTags[i].appendChild(txtNode.cloneNode(false));
}
}

In the first BODY tag put this code to refresh the change on every page load.

<body onload="replacePhrase()">

Next place the following HTML script code on each page where you want the text to be changed to access the .js page.

<script type="text/javascript" src="http://www.yoursite.com/text.js">
document.write(replacePhrase());
</script>

Hope this helps.

Camel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 21, 2007 9:28 pm 
Offline
Member

Joined: Fri Mar 02, 2007 9:35 pm
Posts: 6
Hi Dijenga

Inline frames are ok if you want to display other web pages or large amount of text in a small window as it produces a text type box with scroll bars. If Geohio only wants like me, to change a few words or a date for example, iframes are a bit of an overkill. The javascript matches the main text, font and paragraphs perfectly. Still everyone has there own preferences and yours is a good idea. Thanks for the information.

One final point, I think iframes only work in HTML and IE, not so sure about Netscape.

Camel


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group