473,414 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Help with existing scipt

I was wondering if anyone can help me out.

I'm trying to use a script called Animated Window Opener II
(http://www.dynamicdrive.com/dynamici...imatedwin2.htm) from
Dynamic Drive (http://www.dynamicdrive.com/) but what I want it to do
is something a little different.

I'm trying to use this script (Animated Window Opener II) with
wallpapers that will pop up (expand) into a new window. On the page
there's wallpapers that are 1024x768 and 800x600

How can I go about having the windows pop up to both these sizes? Will
I have to have 2 javascript actions or can I incorporate them into one
code?

For example:
Wallpaper 1
1024 x 768 (would be a text link)
800 x 600 (would be a text link)

Both those links I'd like to open with different sizes

Or is there any other similar javascript script out there that will
act like Animated Window Opener II and do what I'd like done?

Thanks for everyone's help

Jul 20 '05 #1
2 1208
C Elson wrote:
For example:
Wallpaper 1
1024 x 768 (would be a text link)
800 x 600 (would be a text link)

Both those links I'd like to open with different sizes


function expandingWindow(website) {
var
windowprops='width=100,height=100,scrollbars=yes,s tatus=yes,resizable=yes'
Change those two lines to something like this:

function expandingWindow(website,winWidth,winHeight) {
var windowprops='width=' + winWidth +
',height=' + winHeight + ',scrollbars=yes,status=yes,resizable=yes'

And then change this line:

<input type="button" value="Freewarejava"
onClick="expandingWindow('http://www.freewarejava.com')">

To something like this:

<input type="button" value="Image 1024x768"
onClick="expandingWindow('URL to Image',1024,768)">

<input type="button" value="Image 800x600"
onClick="expandingWindow('URL to Image',800,600)">
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2
Thanks for your suggestons.

I tried thos changes but they didn't seem to work.


On Sun, 01 Feb 2004 13:33:30 +0000, Randy Webb
<hi************@aol.com> wrote:
C Elson wrote:
For example:
Wallpaper 1
1024 x 768 (would be a text link)
800 x 600 (would be a text link)

Both those links I'd like to open with different sizes


function expandingWindow(website) {
var
windowprops='width=100,height=100,scrollbars=yes, status=yes,resizable=yes'
Change those two lines to something like this:

function expandingWindow(website,winWidth,winHeight) {
var windowprops='width=' + winWidth +
',height=' + winHeight + ',scrollbars=yes,status=yes,resizable=yes'

And then change this line:

<input type="button" value="Freewarejava"
onClick="expandingWindow('http://www.freewarejava.com')">

To something like this:

<input type="button" value="Image 1024x768"
onClick="expandingWindow('URL to Image',1024,768)">

<input type="button" value="Image 800x600"
onClick="expandingWindow('URL to Image',800,600)">


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Neil | last post by:
Hi, I hope this question isn't too far off topic....I'm almost at my wits end trying to figure this out. I have a Mysql database and I wish to automate the backup of the database because I...
0
by: james | last post by:
I am new to php and need some help getting the session variables into include files. (after-thought, Sorry for the drawn out post but I really, really need help....;) Here's what I'm doing.. ...
4
by: Jm | last post by:
I'm trying to set up ASP.NET on my Windows 2000 server w/ IIS 5 and MS ISA Server. Here's what I have done so far without any luck. Here's the results from the pages I've created...
4
by: kage | last post by:
I was wondering if anyone could make me a script for a mud, my mud client is muchclient 3.42. I just wanted the scipt to be able to do something like this cast id rare Your eyes glow bright...
1
by: kage | last post by:
I was wondering if anyone could make me a script for a mud, my mud client is muchclient 3.42. I just wanted the scipt to be able to do something like this cast id rare Your eyes glow bright...
0
by: Steffen Mutter | last post by:
Hi there! I just want to get this http thing into a dynamic scipt using cURL which - as you might have guessed - I never used before and documentation I found so far is quite unuseful for me......
11
by: treblex | last post by:
Hi, I'm very new to Python. Basically all I want to do is run this scipt. But I don't know how to. My OS is MS Widows XP Any help is much appreciated. P.S. I have already installed...
6
by: Paulchen | last post by:
Hello, I have found a perl script and need to "translate" this to PHP. I try to do it step by step and the first part of it is this function (the whole script is found at...
0
by: RyuMaster | last post by:
Hi! My head already burns - I'm new to PHP and XML, so I just hope some one will help! I have xml files, which looks like this: <toplevel> <username id ="Jonh"> <playersname name...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.