PDA

View Full Version : Pop Up with image ?



Nortion
10-08-2004, 01:16 PM
Hi...
Can it be possible to make a pop up with image in ?

And can i make a screen before my hompage starts and then fade it in ?

Nortion :cool:

cr3ative
10-08-2004, 02:05 PM
You can have a screen fade in using FrontPage Page Transition Effects.

To make a popup, you can use the createpopup(parameters) line of javascript, please refer to http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/createpopup.asp for more information. You would need the image to be placed in an HTML file with the <img src="image location"> tabs.

cr3ative

Nortion
10-08-2004, 08:55 PM
I cant find out of the page u gave me -.-
U think u can send me the HTML-Code with the image ??

Nortion :cool:

cr3ative
10-09-2004, 05:20 AM
Just make an html file containing this:

<html>
<head></head>
<body>
<img src="image location.jpg">
</body>
</html>

Save that as a file, then make the popup open that file.

cr3ative

Nortion
10-09-2004, 11:16 AM
Hi again...

Can u make me a html code for the pop up....
Then make it open the image...
I cant find how and were to make the Pop up open the HTML i have maked with the picture in ....

Thx anyway Nortion

cr3ative
10-09-2004, 01:13 PM
Its all in the link in my first reply, you can customize it from there.
If I get round to it later I may post an example.

cr3ative

Nortion
10-09-2004, 02:49 PM
Now i have tried SO many times to make it work out of that link....
But i will not work -.-
Plz post an Example =)

cr3ative
10-09-2004, 05:24 PM
Use this then, I made it earlier.

<SCRIPT LANGUAGE="JavaScript">
<!--
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.backgroundColor = "white";
oPopupBody.style.border = "solid navy 1px";
oPopupBody.innerHTML = "<img src='your picture.jpg'><br><br><font face='verdana' size='1'>Click outside popup to close.</font>";

// Values are (px from left, px from top, px width, px height)
oPopup.show(300, 80, 200, 50, document.body);
// -->
</SCRIPT>

Anything else, just ask :)
cr3ative

Nortion
10-10-2004, 06:08 AM
Can the pop up get bigger and were do u need to edit to make it bigger ??


Nortion :cool:

Nortion
10-10-2004, 06:17 AM
I did found out of the problem to make it bigger it was pretty easy :P
But Can i make the Picture to a link in the pop up ??



Nortion

cr3ative
10-10-2004, 08:19 AM
Yes, but generally people nowadays use popup blockers, so the script wouldn't work.
And it's generally seen as bad practice to use new windows on load.

cr3ative