Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default JavaScript Help

    Hi

    I'm looking for a bit of Javascript or PHP that will control the size of my viewers browser window.

    This for the obvious reason of design, i'm a designer so this is very important to me!

    I've looked in various places without sucess.

    Thanks in Advance


    grant.smith Guest

  2. Similar Questions and Discussions

    1. Include javascript in a javascript file
      Hello, Is there a way to include a javascript file from WITHIN a javascript file? Something similar as in the "#include" directive in C++? ...
    2. cfm to htm & javascript
      We just upgraded from 5 to MX 7. We have a page that we flatten from cfm to htm. There are popup window links on the page in the form of...
    3. output text in control location; calling control javascript from page javascript
      Hi; If you don't know, I'm just learning javascript and aspnet, but I have a pretty good grounding in windows programming. I'm trying to build a...
    4. JavaScript - How do you add an action to the JavaScript action menu
      Greetings, I'd like to add custom script(s) to the drop down list of actions in Acrobat. We are creating an app where many authors will be...
    5. need javascript staff (anyone who knows javascript peroid) (READ)
      hey its me ultimategamerx and im back in some clothes lol i need some people who know java script i need help please reply if ya know some
  3. #2

    Default Re: JavaScript Help

    Just play with the script as it is no texctly what yo uare after but should
    give yo uan idea.


    <script language="javascript">

    var win = null;
    function NewWindow(mypage,myname,w,h,scroll){
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings =

    'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollba
    rs='+scroll+',resizable'
    win = window.open(mypage,myname,settings)
    }

    </script>






    "grant.smith" <grant@grantsmithonline.co.uk> wrote in message
    news:bfela5$gs3$1@forums.macromedia.com...
    > Hi
    >
    > I'm looking for a bit of Javascript or PHP that will control the size of
    my viewers browser window.
    >
    > This for the obvious reason of design, i'm a designer so this is very
    important to me!
    >
    > I've looked in various places without sucess.
    >
    > Thanks in Advance
    >
    >

    Dr Who Guest

  4. #3

    Default Re: JavaScript Help

    You already have it with the "open browser window" behaviour in DW.

    --
    Regards

    Paul Whitham
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]
    "grant.smith" <grant@grantsmithonline.co.uk> wrote in message
    news:bfela5$gs3$1@forums.macromedia.com...
    > Hi
    >
    > I'm looking for a bit of Javascript or PHP that will control the size of
    my viewers browser window.
    >
    > This for the obvious reason of design, i'm a designer so this is very
    important to me!
    >
    > I've looked in various places without sucess.
    >
    > Thanks in Advance
    >
    >

    Paul Whitham TMM Guest

  5. #4

    Default javascript help

    Want to use javascript to save a file with a signature in it. Want to do a file save as and provide Adobe with the file name. We do not want the user to have to enter a file name.

    Also was trying to locate some documentation on Adobe Javascript. I found it once on the adobe website, but am unable to locate it again.

    Mike
    Mike_Demahy@adobeforums.com Guest

  6. #5

    Default Re: javascript help

    Have a look at <http://partners.adobe.com/asn/acrobat/docs.jsp#javascript>

    Hope that helps.
    Gavin_Anderson@adobeforums.com Guest

  7. #6

    Default Javascript Help

    I have a page that shows a graphic, allows the user to select size and color
    then add it to the paypal cart. I always get the default width and height, and
    I want to be able to select only part of the value of a selectbox. the
    selectbox value resembles this <option
    value='FFFFFF|1.00|White'>White</option> I want to only have the word 'white'
    so that I can add it to the description before it goes in the cart. View the
    page at [url]www.stylusdesigns.com/jnj/[/url] click an image to load the details.htm page
    Thanks

    StylusDesigns Guest

  8. #7

    Default Javascript Help

    I have a page that shows a graphic, allows the user to select size and color
    then add it to the paypal cart. I always get the default width and height, and
    I want to be able to select only part of the value of a selectbox. the
    selectbox value resembles this <option
    value='FFFFFF|1.00|White'>White</option> I want to only have the word 'white'
    so that I can add it to the description before it goes in the cart. View the
    page at [url]www.stylusdesigns.com/jnj/[/url] click an image to load the details.htm page
    Thanks

    StylusDesigns Guest

  9. #8

    Default Re: Javascript Help

    as in the dropdown, the text is = the third element in the value
    attribute, just get it with:

    <SELECT class=cp
    onchange=refreshPreview(this.options[selectedIndex].text); size=1
    name=vinyl_color>

    HTH,

    manuel

    StylusDesigns wrote:
    > I have a page that shows a graphic, allows the user to select size and color
    > then add it to the paypal cart. I always get the default width and height, and
    > I want to be able to select only part of the value of a selectbox. the
    > selectbox value resembles this <option
    > value='FFFFFF|1.00|White'>White</option> I want to only have the word 'white'
    > so that I can add it to the description before it goes in the cart. View the
    > page at [url]www.stylusdesigns.com/jnj/[/url] click an image to load the details.htm page
    > Thanks
    >
    Manuel Socarras Guest

  10. #9

    Default Re: Javascript Help

    Thanks for the replay, I found a different way around the drop down list. But I
    still need help. I cannot get the proper width and height to display when I
    add to my paypal cart. I always get the default values, even after I changed
    them in the form and it updated properly and display the correct numbers on the
    screen.

    StylusDesigns Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139