Code for Tip: Add an Image or custom Text block to your Header.

Text Example:
<script language="JavaScript">
var insertionPoint = document.getElementById('xg_head');
//if the exception ID exists we abort
var exceptionElement = document.getElementById('signin_email');
if((exceptionElement == null) && insertionPoint) {
var bannerAdHtml = '<div style=" float: center; color: #FF0000; border: 1px;
background-color: #DADADA; text-align: center;">
(1) This is where you add your custom text. Change the color from FF0000 to your
chosen text color, and the DADADA to your chosen background color.
See hexadecimal chart in tips for colors. The text will be displayed directly
below your menu tabs.</div>';
insertionPoint.innerHTML += bannerAdHtml;
}
</script>


Image Example:
Replace IMG SRC= with your path and file name.
<script language="JavaScript">
var insertionPoint = document.getElementById('xg_head');
//if the exception ID exists we abort
var exceptionElement = document.getElementById('signin_email');
if((exceptionElement == null) && insertionPoint) {
var bannerAdHtml = '<div style=" float: center; color: #FF0000;
border: 1px; background-color: #DADADA; text-align: center;">
<IMG SRC="http://www.petbrags.com/custom_images/dogpound_banner2.gif"></div>';
insertionPoint.innerHTML += bannerAdHtml;
}
</script>

Text and Image Example:
<script language="JavaScript">
var insertionPoint = document.getElementById('xg_head');
//if the exception ID exists we abort
var exceptionElement = document.getElementById('signin_email');
if((exceptionElement == null) && insertionPoint) {
var bannerAdHtml = '<div style=" float: center; color: #FF0000; border: 1px;
background-color: #DADADA; text-align: center;">
(1) This is where you add your custom text. Change the color from FF0000 to your
chosen text color, and the DADADA to your chosen background color.
See hexadecimal chart in tips for colors. The text will be displayed directly
below your menu tabs. (2) If you want to display an ad or image, use the IMG SRC TAG,
and insert your image here.<br>If you are not an experienced HTML coder, best to
keep this simple.<br>
<IMG SRC="http://www.petbrags.com/custom_images/dogpound_banner2.gif"></div>';
insertionPoint.innerHTML += bannerAdHtml;
}
</script>

Last updated by JenSocial Feb 23, 2009.

Members

© 2024   Created by JenSocial.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Home
VIP Ning Tips