[JS][CS3] Selection Menu with images

I have no idea it this is possible, but I have written this code at the start of a script to select a function within the script:
myDialog = app.dialogs.add({name:"Catalogue Selector"});
with(myDialog)
        with(dialogColumns.add())
          with(dialogRows.add())
               staticTexts.add({staticLabel:"Select the required catalogue:"});
               myOptionButtons = radiobuttonGroups.add();
               with(myOptionButtons)
                    radiobuttonControls.add({staticLabel:"VW"});
                    radiobuttonControls.add({staticLabel:"Peugeot"});
                    radiobuttonControls.add({staticLabel:"MG Rover"});
                    radiobuttonControls.add({staticLabel:"BMW Special"});
                    radiobuttonControls.add({staticLabel:"Nissan HTML"});
                    radiobuttonControls.add({staticLabel:"Nissan XLS"});
                    radiobuttonControls.add({staticLabel:"BMW (GB)"});
                    radiobuttonControls.add({staticLabel:"SEAT"});
                    radiobuttonControls.add({staticLabel:"Citroen"});
                    radiobuttonControls.add({staticLabel:"Vauxhall"});
                    radiobuttonControls.add({staticLabel:"SAAB 1st Column"});
                    radiobuttonControls.add({staticLabel:"SAAB 2nd Column"});
                    radiobuttonControls.add({staticLabel:"Audi"});
                    radiobuttonControls.add({staticLabel:"Fiat"});
                    radiobuttonControls.add({staticLabel:"Ford"});
                    radiobuttonControls.add({staticLabel:"Ford LCV"});
                    radiobuttonControls.add({staticLabel:"Honda"});
                    radiobuttonControls.add({staticLabel:"Vauxhall FUNNY SIZE"});
                    radiobuttonControls.add({staticLabel:"Hyundai"});
myResult = myDialog.show();
and what I want to be able to do is add an image to each option.
Is this possible?
I am looking to work with CS3 only at the moment.
Cheers
Roy

Dear Roy Marshall
  Please use the below code:
var myDialog= new Window(''dialog','Sample');
//Adding Buttons
myButton1 = myPanel.add('button', [380,13,75,25], 'Choose',{name:'button1'});
myButton2 = myPanel.add('button', [380,53,75,25], 'Choose',{name:'button2'});
myButton3 = myPanel.add('button', [380,93,75,25], 'Choose',{name:'button3'});
myCancel = myDialog.add('button', [500,120,100,25], 'Cancel',{name:'cancel'});
myImage = myDialog.add('image',[487,16,588,100],'/Macintosh HD/Applications/Adobe InDesign CS3/Scripts/Scripts Panel/Images/xxx.png');
myCopyright = myDialog.add('statictext',[15,153,400,172],'©xxxxxxx Ltd 2009');
myButton1.onClick= function()
    alert("this is First");
myButton2.onClick= function()
    alert("this is Second Button");
myButton3.onClick= function()
    alert("this is Third Button");
myCancel.onClick= function()
    alert("Close the Menu");
     myDialog.close();
myDialog.show();
Use this Code!!
Regards
T.R.Harihara SudhaN

Similar Messages

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Drop Down Menu with images in Muse and Animate

    Hello,
    i am trying to create a drop down menu with images as you can see on this website:
    http://www.kadewe.de/
    In Adobe Muse the menu with all pages in it doesn't let me insert pictures.
    With the empty composition widget i archived something similar but when once activated the action it doesn't close.
    My last try was to build a menu in Edge Animate. The Problem i had was that when i used the action click, open URL.
    Inserted in Muse the new page opens in the created animation and not on the same page fullscreen.
    What have i done wrong?
    Thank you for your answers.

    I am having a similar problem. I have multiple widgets on a page -- menus, accordions, tooltips, slideshows. As soon as I 'activate' a widget (eg: expand an accordion or play a slideshow) it disables all the triggers below it, as well as all the hyperlinks. This seems like a bug... I hope there's a workaround?

  • CSS Rollover Menu with Images and Current Page Indicator

    Hello.
    I have found a very interesting video here: http://www.youtube.com/watch?v=vv8cRYGCvIY about creating a CSS Rollover Menu with Images and Current Page Indicator (I tested it and it is working fine).
    I have a web site with 15 pages based on a template and I want to use that video sample to do the same thing on my web site.
    Please tell me if I can use the sample from the link above to do that.
    What should I change in the css file (what new class should I make) to make this work on a web site based on a template  ?
    Thank You !

    I don't know about that video tutorial but a sitewide persistent menu indicator ('you are here' highlighting) is very simple to do with CSS classes.
    Details and code examples below:
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • What's the best method for a nav menu with image rollover for all visitors?

    Hi.
    First, thanks for reading this.
    What's the best method for a nav menu with image rollovers for all visitors, including PDAs? I've used JavaScript rollovers for years because the majority of my customers' visitors use some version of IE (past 7.0) but I'm building a new site that has to display properly for the widest range of visitors imaginable. (I also know that I need to use a more modern method for everyone and this is my excuse to start).
    Finally, using images is critical. I apologize ahead of time to anyone I offend, but I have never seen a nav menu without images that doesn't look just plain terrible.
    Thanks.
    Fitz21

    If you want the best menus possible for Dreamweaver look no further than Project Seven:
    http://projectseven.com/
    They have all kinds of menus and other extensions available for purchase.  Easy to use and they work as advertised.  I personally use Pop Menu Magic and Tab Panel magic myself.  I could go on and on, but I guarantee that if others respond they will echo the same sentiment for Project Seven.

  • [CS3][JS] Help with image resizing

    I'm still a newbie of ID scripting.
    I'm using js scripting in Indesign CS3 to make an auto-impaginator and I have a problem with images.
    I charged my contents from an xml set of tables, that I put into a fixed textFrame of the master page.
    Because of the table needs to fill multiple pages, I made a function that keep creating pages and link the textFrames so that the table continues in various pages.
    In this whole process I have some images too, that I need to resize them to fill the cell, because now they pass the parent cell.
    I found a method that looks at the bounds and resizes the image and the rectangle too, but it doesn't work always, because if a image is overflowing, it hasn't any bound and it fails, and this causes other problems in my process, so I would find another method.
    So:
    Is there another way to resize an image on-the-way while importing it? Some xml attribute or preference?
    Or some method that works also if the image is overflowing?

    These forums are pointless. Adobe must believe that other users will cut the mustard. Absolutely a waste of effort for everyone. Adobe should PAY at least a junior developer involved in the projects to monitor and help with these posts. FLEX rules yeah and thousands more do scripting than develop plug ins...
    Come on Adobe, step up your better than this. Customer Service can be free to the customers ... we are not talking about GET IT ALL FREE, talking about buy it and create a community and support it, but then again LAYERS and INDESIGN SECRETS have people who actually want to help users rather than rabbit hole everything.
    Please join hands and SING...

  • Can't get index of spry select menu with JQuery?

    If I do this with a regular (non-dynamic) select menu:
    $('.bogus').change(function(e){
              var i = e.currentTarget.selectedIndex;
              //alert(i);
              ds1.setCurrentRowNumber(i);
    It works. The detail region updates.
    But if I try it with a spry menu, nothing. No event is captured at all.
      <select class="bogus" spry:repeatchildren="ds1" size="10">
                  <option>{name}</option>
        </select>

    If I do this with a regular (non-dynamic) select menu:
    $('.bogus').change(function(e){
              var i = e.currentTarget.selectedIndex;
              //alert(i);
              ds1.setCurrentRowNumber(i);
    It works. The detail region updates.
    But if I try it with a spry menu, nothing. No event is captured at all.
      <select class="bogus" spry:repeatchildren="ds1" size="10">
                  <option>{name}</option>
        </select>

  • How I do I create a horizontal menu with images as background?

    Apple OSX.6.7
    Dreamweaver CS 5.5
    Template: 2 column fixed, left sidebar, header and footer
    I have tried the spry horizontal  menu available through the Insert panel in Dreamweaver 5.5. I thought I could set background images on the li elements, attaching via CSS and using IDs on each li. So far nothing is working especially well, and I'm fried.
    What is the best way to create a horizontal menu when you want to use a background image? At this point, I'd be fine with using one image background and relying on the anchor pseudo classes for hover and active. The menu doesn't have to be an image rollover. It just has to enable me to keep the part of the banner image that descends into the menu area.
    My goal is to do everything using CSS instead of resorting to a table for positioning the menu elements.
    Thanks for your input.

    Customizing Spry Menus
    http://foundationphp.com/tutorials/sprymenu/customize1.php
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Image does not diplay when using "Pull Down Menu with image"?

    Image not displaying when attaching image to the Parent in the New DHTML Pull down menu list.Displays a blank grey image. Any Ideas?
    Cheers.

    Hello,
    Yes, it seems pretty obvious that you would have to replace all for of them otherwise in that condition the generic one would show up.
    But to spell it out you need to replace in . List Template Current , List Template Current with Sub List Items , List Template Noncurrent , List Template Noncurrent with Sub List Items.
    This is one of those thngs you should have just tried it took me longer to type all this out than it would have taken you to test.
    Carl

  • POP UP menu with image not pull down

    I'm new to fireworks. I've looked at tutorials, but it seems
    all the pop up menu features are for pull down menus. I want to
    press the button and have a blank ( separate window 360x 303 pixals
    ) pop up with a jpeg image in it. How do I do this?

    katveze,
    What you are wanting to do is called Disjointed Rollovers.
    Here is a
    great tutorial to point you in the right direction:
    http://www.communitymx.com/content/article.cfm?cid=E11E8
    alex
    katveze wrote:
    > I'm new to fireworks. I've looked at tutorials, but it
    seems all the pop up
    > menu features are for pull down menus. I want to press
    the button and have a
    > blank ( separate window 360x 303 pixals ) pop up with a
    jpeg image in it. How
    > do I do this?
    >

  • Drop down menu with image swap

    I have a drop down menu that I need some help with.  The page is here: http://www.healthquestpt.com/lwh/
    The default menu as you see it is the way I want it: gray tab background, white text that is centered on the image.  What I want to make happen with it is when you mouseover the link to have the image swap from:  to: and I want the text in this "tab" to remain centered and change to blue
    For the dropped down links I just want a plain white background, the links to be aligned left and the default color to be blue.  I want the text hover color to be gray.
    Ive tried various things and I cant seem to figure how to get style attributes assigned correctly.
    All help is GREATLY appreciated!!!
    My css file is here:  http://www.healthquestpt.com/lwh/styles.css
    and the dropdownmenu.js file is here:  http://www.healthquestpt.com/lwh/scripts/dropdownmenu.js
    P.S. I'm using DW CS6

    You might want to try out the Spry menus which ship with Dreamweaver.
    Below is the code for the menu BUT you'll have to make sure the SpryMenuBar.js file is in your site folder for the sub-menus to work.
    Best way of doing that is to open a blank page. Go to Insert>Spry>Spry Menu Bar>Horizontal>save page which will create a folder named SpryAssets into your site folder. Open up the SpryAssets folder and delete the file - SpryMenuBarHorizontal.css
    Copy and save code below into a new Dreamweaver document and save it to your side folder. Run it via a browser.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <style>
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 13px;
        cursor: default;
        width: auto;
        font-family: Tahoma, Arial, Helvetica, sans-serif;
        font-weight: bold;
    ul.MenuBarActive
        z-index: 1000;
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        position: relative;
        width: 140px;
        float: left;
        margin-right: 4px;
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 8.2em;
        position: absolute;
        left: -1000em;
    ul.MenuBarHorizontal a
        display: block;
        background-color: #666;
        text-decoration: none;
        text-align: center;
        padding: 4px 0;
        color: #fff;
        border-top: 1px solid #666;
        border-right: 1px solid #666;
        border-left: 1px solid #666;
        -moz-border-radius: 10px 10px 0 0;
        -webkit-border-radius: 10px 10px 0 0;
        -khtml-border-radius: 10px 10px 0 0;
        border-radius: 10px 10px 0 0;
    ul.MenuBarHorizontal a:hover
        background-color: #fff;
        color: #39C;
        border-top: 1px solid #666;
        border-right: 1px solid #666;
        border-left: 1px solid #666;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 140px;
    ul.MenuBarHorizontal ul li a
        background-color: #FFF;
        color: #666;
        border: none;
        text-align: left;
    ul.MenuBarHorizontal ul li a:hover
        border: none;
        color: #39C;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu" href="#">Office Supplies</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    <li><a href="#">Paper &amp; Printing</a>
    <ul>
    <li><a href="#">Item 3.1.1</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    </ul>
    </li>
    <li><a class="MenuBarItemSubmenu" href="#">Filing</a>
    <ul>
    <li><a href="#">Item 3.1.1</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    </ul>
    </li>
    <li><a href="#">Mailing &amp; Shipping</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <li><a href="#">Furniture</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <li><a href="#">Audio Visual</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    </ul>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • Selectable text with images scroller

    I've been looking everywhere to see if it is it possible to
    have images embedded within a selectable text scroller? I can do
    everything except embed images that will scroll with the text. So
    far, when I embed images, the text becomes static.
    Does anyone have a solution?
    MJ

    You should process the found instances back to front:
    for (i = f.length-1; i >= 0; i--)
    Peter

  • No Image - Pull Down Menu List with Image

    HI.
    i am using Pull Down Menu List with Image (Custom 1). but when i run the application i can't see any image. below is the link to my application
    [http://apex.oracle.com/pls/otn/f?p=49167:1|http://apex.oracle.com/pls/otn/f?p=49167:1]
    Sagar

    Hello Sagar,
    If you change the template for the list to 'Pulldown menu with image' the images show up.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • Search .docx and replace text with image

    I've got a directory containing a series of images. The images will always be the same name and I need to insert them into placeholders in a Word document which will be a template. I thought of using the image names as placeholders, opening the document
    and searching for the image name, replacing it by inserting the image, and doing so for each image in the directory.
    $file is the name of the image in the directory and it loops through them okay.
    foreach($file in Get-ChildItem $savepath -Filter *.jpg)
            # search word doc and replace selected text with image ($file)    
    Also inserting the image seems simple enough from a TechNet article I found, but I've got no idea how to open the Word document and do a search and replace. I found a few articles related to the subject but I couldn't get them to work when I tried to adapt
    them.
    Any help is appreciated. Thanks in advance.

    This 'might' be possible, but I'm having a hard time finding good references to the com object capabilities for inserting an image into a word document.  Creating new, converting format, that sort of thing is straightforward.
    I'd do a search on "powershell word comobject" and variations of insert image update edit, etc.  Or maybe someone else with more experience/knowledge has a magic bullet for you.  Once you get some info on doing it with powershell, expand
    your search by omitting the powershell keyword, there's gotta be some solid documentation for the comobject somwhere, but it will probably be a bit complex.
    You can also:
    $word = new-object -comobject word.application
    $doc = $word.documents.add("<path to word document>"
    and get-member to your heart's content, but finding references and/or documentation might be easier.  
    Good luck!
    Edit:  This could help, but really doesn't give much insight into placement of the image, only helps getting the image into the doc:  http://gallery.technet.microsoft.com/office/44ffc6c8-131f-42f1-b24b-ff92230b2e0a
    If you do find something useful, post it here, I'm sure others could benefit!
    SubEdit:  Should have thought of this already...
    http://msdn.microsoft.com/en-us/library/ff837519(v=office.14).aspx

  • In bridge i select a jpg image with cntrl r to open in camera raw but get "camera raw not avail"

    In bridge i select a jpg image with cntrl r to open in camera raw but get "camera raw not available"  camera raw editing requires that a qualifying product has been launched at least once to enable this feature.  I can open nef. in camera raw with no problem.

    Hm, what I suggested might actually be a possibility then...
    Close whatever version you have open first...
    I think Adobe installs shortcuts for both 32 and 64 bit Photoshop in the start menu.
    If you can't find the 32 bit Start menu entry, look for the 32 executable here (changing the CS version number to whatever yours is):
    C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Photoshop.exe
    -Noel

Maybe you are looking for

  • Is there a 3rd Party Solution for Adobe's lack of recover for unsaved work?

    Time and time again I am baffled by Adobe's inability or refusal to make the user experience consistent across it's entire Creative Suite. I am repeatedly shocked by the punitive error messages I receive in Photoshop. It's as though you don't really

  • I lost all apps after reseting and updating to IOS 7.1.1 How do I get them back?

    I lost all apps after reseting and updating to IOS 7.1.1 How do I get them back? I did a reset of my phone yesterday and now when I go to purchaed to download my paurchsed tabs there is nothing there. I see them in my ipad but they are not in my itun

  • My screen freeze daily from nokia Lumia 920

    The last days my screen freeze and then I always need put back the time

  • Prepared statement problem

    I am trying, for some time now, to implement some sort of bank application that uses DBs to store customers. I have been trying to improve my code, the results are interesting since while studing more I saw that the previous code was.....not so good.

  • ABAP connect SQL run SQL insert into Error

    Dear All          I have a problem in ABAP connect SQL,Below is my code snippet sentence. CONCATENATE 'Insert Into [timportcortrol]'                 '(zucode,zstate,zdate,zkind) Values('''                   VG_PCID ''','''                   '1'','''