Help with existing scipt

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C Elson

    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

  • Randy Webb

    #2
    Re: Help with existing scipt

    C Elson wrote:
    [color=blue]
    > 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[/color]

    function expandingWindow (website) {
    var
    windowprops='wi dth=100,height= 100,scrollbars= yes,status=yes, resizable=yes'


    Change those two lines to something like this:

    function expandingWindow (website,winWid th,winHeight) {
    var windowprops='wi dth=' + winWidth +
    ',height=' + winHeight + ',scrollbars=ye s,status=yes,re sizable=yes'

    And then change this line:

    <input type="button" value="Freeware java"
    onClick="expand ingWindow('http ://www.freewarejav a.com')">

    To something like this:

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

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


    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • C Elson

      #3
      Re: Help with existing scipt

      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
      <hikksnotathome @aol.com> wrote:
      [color=blue]
      >C Elson wrote:
      >[color=green]
      >> 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[/color]
      >
      >function expandingWindow (website) {
      >var
      >windowprops='w idth=100,height =100,scrollbars =yes,status=yes ,resizable=yes'
      >
      >
      >Change those two lines to something like this:
      >
      >function expandingWindow (website,winWid th,winHeight) {
      >var windowprops='wi dth=' + winWidth +
      >',height=' + winHeight + ',scrollbars=ye s,status=yes,re sizable=yes'
      >
      >And then change this line:
      >
      ><input type="button" value="Freeware java"
      >onClick="expan dingWindow('htt p://www.freewarejav a.com')">
      >
      >To something like this:
      >
      ><input type="button" value="Image 1024x768"
      >onClick="expan dingWindow('URL to Image',1024,768 )">
      >
      ><input type="button" value="Image 800x600"
      >onClick="expan dingWindow('URL to Image',800,600) ">[/color]

      Comment

      Working...