Content on the background
2 posters
Page 1 of 1
Content on the background
Hello, so basically what I want to do is put table or some content on the marked space of forum's background:
Like here:
(I know it's not the widget thingie, because it appears on the body of the forum.
If necessary, here's the link
http://gtfo.justgoo.com/
Like here:
(I know it's not the widget thingie, because it appears on the body of the forum.
If necessary, here's the link
http://gtfo.justgoo.com/
Julija- Forumember
- Posts : 48
Reputation : 0
Language : english
Re: Content on the background
To put it in a simpler way, I want widgets to appear on the background of the forum... anyone?
Julija- Forumember
- Posts : 48
Reputation : 0
Language : english
Re: Content on the background
Try it with JavaScript.
You can add the code under Administration Panel -> Modules -> HTML & JavaScript -> JavaScript pages management -> Create a new JavaScript; name it as you like and select where you want it to appear.
- Code:
jQuery(document).ready(function(){
var t = document.getElementsByTagName("table"), nt = document.createElement("table"), b, h;
if(!t[0]) throw new Error("Invalid Site Structure."); // this line will never be reached if tables exist, I just added it to feature error handling
if(!document.body.offsetHeight || !document.documentElement.offsetHeight) {
if(!window.innerHeight || !window.outerHeight) {
alert("No CSS compability detected; current height cannot be calculated.");
} else { h = window.innerHeight; }
} else { h = document.body.offsetHeight; }
if(!t[0].style.border) var b = undefined; else b = t[0].style.border;
jQuery(nt).css({
'width' : '200px',
'height' : t + 'px',
'position' : 'fixed'
'border' : b ? b : 'none',
'overflow' : 'scroll'
});
nt.innerHTML = "<tr><td>Your HTML here.</td></tr><tr><td>This is the second row.</td></tr><tr><td>This the third row.</td></tr><tr><td>And so on.</td></tr>";
jQuery(nt).prependTo(t[0]);
});
You can add the code under Administration Panel -> Modules -> HTML & JavaScript -> JavaScript pages management -> Create a new JavaScript; name it as you like and select where you want it to appear.
Re: Content on the background
Thanks for your time, but it doesn't seem to be working
Julija- Forumember
- Posts : 48
Reputation : 0
Language : english
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum