Code-E
17-02-2010, 15:09
Всем HI.
Есть скрипт анимированной кнопки на JavaScript.
<div id="bottom2"><a href="services.html">
<script type="text/javascript">
if (document.images)
{
mouseNormalImage = new Image();
mouseNormalImage.src = "img/bottom/1.gif";
mouseOverImage = new Image();
mouseOverImage.src = "img/bottom/2.gif";
mouseDownImage = new Image();
mouseDownImage.src = "img/bottom/3.gif";
}
</script>
<img style="border-style: none" alt="" src="img/bottom/1.gif"
onmouseout=" this.src='img/bottom/1.gif' "
onmouseover=" this.src='img/bottom/2.gif' "
onmousedown=" this.src='img/bottom/3.gif' " /></a>
</div>
Может кто нибудь знает, как поставить текст по середине кнопки, как ни крутил он либо с верху либо с низу.
CSS не исключаю, может можно как нибудь через СSS его поставить в нужное место?
Помогите пожалуйста.
Есть скрипт анимированной кнопки на JavaScript.
<div id="bottom2"><a href="services.html">
<script type="text/javascript">
if (document.images)
{
mouseNormalImage = new Image();
mouseNormalImage.src = "img/bottom/1.gif";
mouseOverImage = new Image();
mouseOverImage.src = "img/bottom/2.gif";
mouseDownImage = new Image();
mouseDownImage.src = "img/bottom/3.gif";
}
</script>
<img style="border-style: none" alt="" src="img/bottom/1.gif"
onmouseout=" this.src='img/bottom/1.gif' "
onmouseover=" this.src='img/bottom/2.gif' "
onmousedown=" this.src='img/bottom/3.gif' " /></a>
</div>
Может кто нибудь знает, как поставить текст по середине кнопки, как ни крутил он либо с верху либо с низу.
CSS не исключаю, может можно как нибудь через СSS его поставить в нужное место?
Помогите пожалуйста.