Stick Page Forums Archive

Pop-Up Animation Windows[Javascript][Coding]

Started by: Fretspider | Replies: 4 | Views: 2,159

Fretspider
2

Posts: 206
Joined: Sep 2005
Rep: 10

View Profile
Sep 2, 2006 9:39 AM #14435
This code is javascript. It is a basic code which displays a flash movie in a pop up box.

alternatetext
Title of anim
Title of author


I will now explain the code.




This part of the code is basically setting up the window, as you can see by the 'javascript.window.open' How do I make it open MY animation, you say?

('blahblah.swf','


In the code, replace that with the URL of your animation. That will make it so that when clicked, it will open the animation at that URL in a small window, like you see on many good animation websites. Now I will move on.

alternatetext
Title of anim
Title of author


This is the screenshot. It will show a small screenshot of your animation (which you must have already, it wont automatically make one for you) and show it next to the title of your movie.

src="url.jpg"


Replace that, with the URL of your little screenshot. Now, on to how to show the title and author of your movie.

Title of anim
Title of author


Replace 'Title of anim' with the title of your animation, and 'Title of author' with the movies author. Just for those who arent completely sure still, I have set up a little list of things you can change to suit your movie.

('blahblah.swf',
< Change that to the URL of your movie.

width=550, height=400'
< The dimensions of your movie.

img src="url.jpg"
The URL of your movies screencap.

alt="alternatetext" 
< Change 'alternatetext' to the text you want the viewers to see if they cant see the screencap.


Title of anim
Title of author
< Changes the title of the animation, the author of the animation.

#333333
Change to the colour of the text you want.


Thats my tutorial. I hope you like it. If there are any problems you can see, please let me know. Thanks.
Lgolos
2

Posts: 316
Joined: Aug 2005

View Profile
Sep 13, 2006 10:53 PM #15209
That's actually pretty cool. Good tut, very explanatory.

It could be used for evil, though.
LN3uq
2

Posts: 2,457
Joined: Dec 2004
Rep: 35

View Profile
Sep 13, 2006 11:23 PM #15218
Neat code, thanks for sharing! =D
Lgolos
2

Posts: 316
Joined: Aug 2005

View Profile
Sep 21, 2006 2:28 AM #15686
It saddens me that this gets 2 posts when shit gets 10 pages.
Fretspider
2

Posts: 206
Joined: Sep 2005
Rep: 10

View Profile
Sep 22, 2006 9:12 AM #15747
Quote from ln3uq
Neat code, thanks for sharing! =D


Quote from Lgolos
That's actually pretty cool. Good tut, very explanatory.

It could be used for evil, though.


Heh, thanks guys =) Someone finally posted some feedback.

It works with images too, so it will work for .gif and artwork.

Once again, thanks for comments.

=D
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.