Post by Peter on Oct 31, 2004 15:24:42 GMT
Created by Nadim
This code will allow you to control your gradient images through the admin area of your board.
If you are going to use this hack, you must first remove any gradient CSS from your headers or footers. This should look something like this...
Main Header
Main Footer
All Board Headers (Not main header)
Enjoy. =)
This code will allow you to control your gradient images through the admin area of your board.
If you are going to use this hack, you must first remove any gradient CSS from your headers or footers. This should look something like this...
Main Header
<script type="text/javascript">
//Gradient Manager - by Nadim (aka. SkEtCh)
//This code must not be modified of reposted without the permission of its creator.
//http://ssdesigns.proboards17.com
var MenuBG = "";
var TitleBG = "";
var CatBG = "";
var GradCSS = '<style>\n';
GradCSS += (MenuBG.match(/./))? '.menubg {background-image: url('+MenuBG+'); background-repeat: repeat;}': '';
GradCSS += (TitleBG.match(/./))? '\n.titlebg {background-image: url('+TitleBG+'); background-repeat: repeat;}': '';
GradCSS += (CatBG.match(/./))? '\n.catbg {background-image: url('+CatBG+'); background-repeat: repeat;}': '';
GradCSS += '\n</style>';
document.write(GradCSS);
</script>
<script type="text/javascript" src="http://www.webpost.net/na/nadim/hacks/MH.js"></script>
Main Footer
<script type="text/javascript" src="http://www.webpost.net/na/nadim/hacks/MF.js">
//Gradient Manager - by Nadim (aka. SkEtCh)
//This code must not be modified of reposted without the permission of its creator.
</script>
All Board Headers (Not main header)
<script type="text/javascript">
//Gradient Manager
var MenuBG = "";
var TitleBG = "";
var CatBG = "";
var GradCSS = '<style type="text/css">\n';
GradCSS += (MenuBG.match(/./))? '\n.menubg {background-image: url('+MenuBG+'); background-repeat: repeat;}': '';
GradCSS += (TitleBG.match(/./))? '\n.titlebg {background-image: url('+TitleBG+'); background-repeat: repeat;}': '';
GradCSS += (CatBG.match(/./))? '\n.catbg {background-image: url('+CatBG+'); background-repeat: repeat;}': '';
GradCSS += '\n</style>';
document.write(GradCSS);
</script>
Enjoy. =)