ورود

نسخه کامل مشاهده نسخه کامل : راهنمایی ویرایش کد جاوا



VAMO
03-10-2008, 12:19
سلام :
چگونه می توانم یک متن کوچک برای کد زیر بنویسم که نمایش پیدا کنه .
البته یک متنی توش هست که وقتی ماوس روی تصویر می رود نمایش پیدا می کند . ولی می خواهم به صورت ثابت نمایش داده بشه .



<script>
window.onload = resizeimg;
function resizeimg()
{
if (document.getElementsByTagName)
{
for (i=0; i<document.getElementsByTagName('img').length; i++)
{
im = document.getElementsByTagName('img')[i];
if (im.width > 600)
{
im.style.width = '600px';
eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,r esizable=1'); pop.focus();\")");
eval("im.onclick = pop" + String(i) + ";");
if (document.all) im.style.cursor = 'hand';
if (!document.all) im.style.cursor = 'pointer';
im.title = 'Click Here To See Image Full Size ';
}
}
}
}

</script>