|
|
Add the following points to
web page (current page - enlarge
picture/enlarge_picture.htm)
Notes
|
 |
|
1. |
at Normal
Source of web page - (current page), add the following
picture -
(.../enlarge_picture_files/1897_250.jpg) |
2. |
create new
web page, sample web page stores text and picture -
(.../enlarge_picture_files/p1897.htm)
|
3.
|
at HTML Source of web
page - (current
page) add this Javascript
text
<SCRIPT
language=javascript> //Enlarge Picture
function
dynAnimation() {} function clickSwapImg()
{}
function MM_swapImgRestore() { //v3.0 var
i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
x.src=x.oSrc; }
function MM_preloadImages() {
//v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array(); var
i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++) if (a[i].indexOf("#")!=0){
d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];}} }
function MM_findObj(n, d)
{ //v4.0 var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length)
{ d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);} if(!(x=d[n])&&d.all)
x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document); if(!x &&
document.getElementById) x=document.getElementById(n); return
x; }
// -->
function
MM_openBrWindow(theURL,winName,features) {
//v2.0 window.open(theURL,winName,features); }
</SCRIPT> |
4. |
- at Normal Source of web page -
(current page), select
the picture - (enlarge_picture_files/1897_250.jpg)
- at HTML source, appears the
place selected (the picture selected at Normal
Source)
<IMG height=186
src="enlarge_picture_files/1897_250.jpg" width=359
border=0>
- at HTML source, replace the
previous HTML text by the following HTML
text, (color of old text - red, color of new text - black)
<A
onclick="MM_openBrWindow('enlarge_picture_files/p1897.htm','p1897','scrollbars=no,width=810,height=445')"
onmouseout=MM_swapImgRestore() target=_blank
alt="Enlarge Picture - 1897"><IMG height=186
src="enlarge_picture_files/1897_250.jpg" width=359
border=0> | |
|
| | |