Hi all
I have javascript that does the following: when the user puts the mouse on an image, text is shown in a specified location.
Problem is I cannot modify the size of the text. I need to set it to a certain size to prevent surfers from messing up the look of the page by increasing font size on their browsers. How do I set the font size manually and prevent this?
Code is as follows:
in the head section
<script language="JavaScript">
function change(html){
descriptions.innerHTML=html
}
</script>
In the body.....
<a href="mypage" onmouseover="javascript:change('my mouseover text')" onmouseout="javascript:change('my mouseout text')"><Img src="my image">
The output text appears from...
<div id="descriptions">All the text appears in here</div>
Thanks
Owen
I have javascript that does the following: when the user puts the mouse on an image, text is shown in a specified location.
Problem is I cannot modify the size of the text. I need to set it to a certain size to prevent surfers from messing up the look of the page by increasing font size on their browsers. How do I set the font size manually and prevent this?
Code is as follows:
in the head section
<script language="JavaScript">
function change(html){
descriptions.innerHTML=html
}
</script>
In the body.....
<a href="mypage" onmouseover="javascript:change('my mouseover text')" onmouseout="javascript:change('my mouseout text')"><Img src="my image">
The output text appears from...
<div id="descriptions">All the text appears in here</div>
Thanks
Owen