Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Oct 17th, 2017, 04:26am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Text to image  (Read 7012 times)
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2070
xx Text to image
« Thread started on: Aug 19th, 2006, 04:05am »

This will allow you to change specified titlebg or Catbg text to an image

Submitted by Zando

Cross Browser
Footers
Edit Green



<script type="text/javascript">
<!--

//Text to Image
function tti(text,image){
var td=document.getElementsByTagName("td")
for(z=0;z<td.length;z++){
if(td[z].className.match(/catbg|titlebg/)){
var zag=td[z].innerHTML.replace(text,"<img src='"+image+"'>");
td[z].innerHTML=zag;
}}}
tti("TEXT","IMAGE URL");

//-->
</script>



If you want this to take effect on more text, just add as many of this as you want.
tti("TEXT","IMAGE URL");
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls