-
:) I am wanting to control the font size of the following, what and where do i need to add the code as i have tried but nuthing has worked.
<script language=JavaScript>
var txt = "Add To Favorites";
var url = "mysite.com";
var who = "-sitename-";
var ver = navigator.appName;
var num = parseInt(navigator.appVersion);
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
document.write(''+ txt + '');
}else{
txt += " (Ctrl+D)";
document.write(txt);
}
</script>
Thanks
-
Put this in the <head> section...
Code:
<script type="text/javascript">
function bookmark()
{
if((navigator.userAgent.toLowerCase()).indexOf("msie")!=-1)
{
window.external.AddFavorite("http://www.yoursite.com","Your Site");
}
else
{
alert("This link will work only in Internet Explorer.");
}
}
function over()
{
window.status="The text you want to see in the status bar";
return true;
}
function out()
{
window.status=" ";
return true;
}
</script>
Then, use this as the link...
Code:
<a href="javascript:void(0);" onmouseover="over();" onmouseout="out();" onclick="bookmark();">Click here to bookmark this page.</a>
Hope this helps. :)
-
Thanks :) I will go and try it now :)
-
Fuck, I just noticed an error. Went back and edited the original post.
-
Thanks for your help :D the edited one works now :D
Thanks again,
-=Cyrus=-
-