Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Aug 19th, 2017, 08:06am


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: Add Text/HTML next to reply box.  (Read 5352 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17644
xx Add Text/HTML next to reply box.
« Thread started on: Feb 5th, 2004, 4:56pm »

Put this in all your board footers:
    <script>
    if(location.href.indexOf("&action=post") != -1 || location.href.indexOf("=reply") != -1 || location.href.indexOf("=createpoll") != -1 ){
    var TD = document.getElementsByTagName('TD')
    for(jh=0; jh<TD.length; jh++){
    if(TD[jh].innerText=="Message:"){
    var inh = TD[jh+1].innerHTML
    inh ="<table valign=top><tr><td>" + inh +"</td><td valign=top><div id=extra></div></td></tr></table><br /><br />"
    TD[jh+1].innerHTML = inh
    }}
    extra.innerHTML="content to appear next to text box"
    }
    </SCRIPT>


Insert what you want to appear next to the post box where I've highlighted in red...

This can be HTML or just plain text. The most important thing to remember is that if the text/HTML code you insert contains any quote marks, they must be escaped first.

For example: If I wanted to put this next to the text box:- Dave was "here" again

You would have to put it in like this:-

extra.innerHTML="Dave was \"here\" again"

If you'd like to see a preview of this code's effects click here

« Last Edit: Jul 5th, 2006, 6:55pm by Garet » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
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