01 March 2009

Insert Welcome & Goodbye Alert to your blog

Do you see a welcome message when visiting my blog? and do you see a goodbye message when leaving my blog? Do you have the desire to create one? I mean do you want to add a welcome message or goodbye meesage on your blog? lets do it...


Login go to your layouts section. On the 'Page Elements' setup page
make sure you have a label widget already installed where you want it (it can be moved around
later). Then go to the Edit HTML settings and leave the widgets NOT exapanded. It will make
things easier to deal with.

Find
<head>
<b:include data='blog' name='all-head-content'/>
paste this script after <b:include data='blog' name='all-head-content'/>

<script language='JavaScript'>alert("Yours Welcome Message");
function goodbye(){
alert("Yours Goodbye Message");
}
parent.window.onunload=goodbye;</script>

Like mine :
<head>
<b:include data='blog' name='all-head-content'/>
<script language='JavaScript'>alert("welcome to Habeeb's Site");
function goodbye(){
alert('thanks for your visit');
}
parent.window.onunload=goodbye;</script>
Click save button, then preview your's blog :).

0 comment: