There is no scr attribute for the img tag. Also, though the line wrapping may be an artifact of the way the forum has displayed your code on my monitor, you cannot have a line break in the middle of a document.write(), at least not the way it appears here:
Code:
<table width="92%" border="0">
<tr>
<script type="text/javascript">
var width = screen.width;
var height = screen.height;
var status = "false";
alert("have reached here");
if( width == 1280 && height == 1024 )
{
alert("have entered 1280 x 1024 mode");
document.write('<td width="350" height="399" align="center"><img //no line break allowed here
scr="Design/Assets/father_john_1280_1024.gif"></td>');
document.write('<td width="488"><div align="center">');
status = "true";
}
</script>
<p><strong><font color="#000000" size="7" face="Arial, Helvetica, sans-
serif">Father John</font></strong></p>
<p><strong><font color="#000000" size="4" face="Arial, Helvetica, sans-
serif">our Spiritual Advisor</font></strong></p>
</div></td>
</tr>
This will work:
Code:
<table width="92%" border="0">
<tr>
<script type="text/javascript">
var width = screen.width;
var height = screen.height;
var status = "false";
alert("have reached here");
if( width == 1280 && height == 1024 )
{
alert("have entered 1280 x 1024 mode");
document.write('<td width="350" height="399" align="center"><img src="Design/Assets/father_john_1280_1024.gif"></td>');
document.write('<td width="488"><div align="center">');
status = "true";
}
</script>
<p><strong><font color="#000000" size="7" face="Arial, Helvetica, sans-
serif">Father John</font></strong></p>
<p><strong><font color="#000000" size="4" face="Arial, Helvetica, sans-
serif">our Spiritual Advisor</font></strong></p>
</div></td>
</tr>
Bookmarks