insanity > roswell is that way ---> :: hopefully andriods never takeover :: invisionfree :: > Content on Registration Page

Content on Registration Page - Posted By Aki. (admin) on 2nd Feb 09 at 4:37pm
<script>
var cookies = "Edit Here";
if (location.href.indexOf("act=Reg") != -1){
document.write("<center>"+cookies+"</center>");
}
</script>
Wow. Look how small that is! I don't get it with you people over at InvisionFree using MASSIVE codes to accomplish this? Use this one instead, runs faster, takes less space, stable, and doesn't have a penguin! Just edit the place that says 'edit here'.

If you wish to have an image replace 'Edit Here' with <img src='http://image' /> make sure you use a single quote and not a double quotation. Why? Because it is how this script is written, the JavaScript itself uses the double quotation and if using double quotation it breaks the code. So for example your image addition will end up making the code look like this:
var cookies = "<img src='http://wimg.co.uk/image.png' />";
Place this code in your board wrappers under 'Header & Body' place above:
<% BOARD %>
And below
<% BOARD HEADER %>
<% NAVIGATION %>
Reply if you need any help. Remember you must be registered.

Preview: http://wimg.co.uk/3gjHMx.png

Re: Content on Registration Page - Posted By Abra (abraka) on 23rd Sep 19 at 7:18am
Because it is how this script is written, the JavaScript itself uses the double quotation.