Need help placing images on separate layers

I'm a novice to Javascript but I've been trying to learn. I have a project where i need to place muliple images from a folder onto separate layers (same page) in a template. I tried to modify "ImageCatalogue" script within InDesign to disastrous results. On another thread someone was kind enough to give me a short script "Objects to Layers" written by Kasyan Servetsky. This was very helpful but not exact to my needs so now I'm starting from scratch. I've been playing with the following code trying to get it to work. It doesn't and I'm getting frustrated. I keep changing this line but it keeps coming back as "undefined":
myImage.place(newLayer);
Can someone please point me in the right direction? Is my coding too simple? The end comments are my wish list of add-ons should I ever get these layers working.
Thanks for your help!
// script to place images on separate layers
Main();
function Main(){
          // get path to folder, ask to select which folder
          var myFolder = Folder.selectDialog("Select folder containing images");
          // use open document
          doc = app.activeDocument;
          // if folder is empty, tell user to select another folder
          if(myFolder.length == 0){
                    selectDiaglog("Folder empty, select new folder");
          else{
          // select each file in myFolder and place on new layer in active document
                    var myImage = myFolder.item;
                    newLayer = doc.layers.add(+1);
                    myImage.place(newLayer);
          alert("Done")
// rotate image 90 CCW
// place image at x-6.41, y9.9955 on page
// rename layer as filename

Hi,
Main();
function Main(){
     // get path to folder, ask to select which folder
     var myFolder = Folder.selectDialog("Select folder containing images");
     // use open document
     doc = app.activeDocument;
     // if folder is empty, exit
     if(!myFolder){
          alert("no Folder selected, I am quitting"); exit();
     // place each file in myFolder on new layer in active document
     // files are filtered by their extension
     var
          myImages = myFolder.getFiles(/\.jpg$|\.tiff$|\.pict$|\.bmp$|\.eps$|\.pdf$/i),
          len = myImages.length, currImg,
          mAngle = 270,
          mX = -6.41,
          mY = 9.9955;
          while (len-->0) {
               currImg = doc.pages[0].place(
                    myImages[len],     // current file
                    [0,0],     // initial place point
                    doc.layers.add({name: myImages[len].displayName}),          // rename layer as filename
                    false,
                    false,
                    {absoluteRotationAngle: mAngle}          // rotate image 90 CCW
                    )[0].parent;
               currImg.fit(FitOptions.FRAME_TO_CONTENT);     //  fix frame to content
               currImg.move([mX,mY]);          // move image at x-6.41, y9.9955 on page
          alert("Done")
Each image in the same point placed?
Good help is served here:
http://www.jongware.com/idjshelp.html
Each object has properties and methods.
Used above: folder.getFiles(), page.place(), rectangle.fit() and rectangle.move() methods.
Jarek

Similar Messages

  • Need help placing images

    Hey everybody hows it going? Any help you could give me would
    be greatly appreciated!
    Here is my problem. I am working off a template and have been
    able to do everything I want so far but ive run into a problem.
    Check my site to follow along
    Shine Media House (Click
    Here). Whenever the user clicks on About, Services or Contact a
    random image appears along with the background on the corresponding
    page. I need to be able to link it to a specific image. I found the
    action for the random sequence and it reads as follow,
    (_root.link !== 3) {
    _root.pic_num = (Math.ceil(Math.random()*105));
    Anybody know a way to fix my problem? It probably is really
    simple I just have no clue.
    Any help would be greatly appreciated!!!

    This is a perfect answer. I am now able to specify what
    number image from an array of images. Now, is there a way to
    specify different photos for the three different buttons?
    I am thinking that is what the
    if (_root.link !== 3)
    piece is about.
    Any thing would be great!!!
    Thanks!
    I can post the fla file somewhere if that would help!

  • Need help placing image behind design

    I am currently designing a DVD case for a wedding client. I have everything on it completed, except that I cannot send the picture behind the design, so that it is only visible through the circular opening.
    I've tried rearranging layers, changing visibility, everything.
    This unfortunately won't let me attach a screen grab of the photoshop window, hopefully my description is clear. Thanks so much in advance!

    Hi Amunzphotography,
    Unfortunately I am not sure what is the problem here. If you are rearranging the layers that should do the trick.
    Could you take a look at this document, it explains how to share screenshots on the forums.

  • Need help placing a like button on my site.

    I have managed to put a like button on my site, but now i have the next problem. If you look on my site
    http://www.dorff.nl/
    You will see the facebook like buttons hanging on the left side of the page. I really want to place the button on the right side..next to the black buton with the text "mijn portfolio".
    Can you tell me how can i do this?
    Regards  Brian

    Hi Ken,
    i got an other question...  it looks like this one but i think i need a little push into the right direction.
    On my site at this page
    http://www.dorff.nl/company.html
    There is only text.. Now i want to place an image next to Dorff Design
    How can i do this???  The image name is Monitor...
    i think i need a litlle code for css. And i need to place the image inside a div... i think?
    Hope you give me a start..
    Regards Brian
    Date: Mon, 9 Apr 2012 06:52:15 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help placing a like button on my site.
        Re: Need help placing a like button on my site.
        created by Ken Binney in Dreamweaver - View the full discussion
    You're welcome From my hasty little tip, it looks like you ran with it and added this to your style.css .fb-like Good work guy! PS It's a handsome design.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4321953#4321953
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4321953#4321953. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • TS1314 Need help tranfering images to iphone...

    I need help tranfering images from my computer to my iphone. I've synced the images but they don't appear on my iphone, also on the file that contains the images, there's a file that says IPOD PHOTO CACHE. I don't know what to do. Please Help...

    Hope these help, do you not find them at all in the photos app?:
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPhoto '11: View photos or slideshows on iPod, iPhone, iPad, or Apple TV
    http://support.apple.com/kb/PH2437
    iTunes: Understanding the iPod Photo Cache folder
    http://support.apple.com/kb/TS1314
    ============================
    - Oz

  • Need help placing photo image in laptop screen of a video...

    I have footage that is both zooming and panning, and need a photo image to fit within the laptop screen space during the duration of the pan/zoom.  Should I use "Track Motion" accompanied with key-framing in 2D?  Does this make sense?  Is there an easier way to achieve this, or is that the way to go?
    Here is a rough take of the clip of which I speak.  In reality, we will be placing the same image on both the HDTV and the laptop in the shot.  Hopefully, this will make what I have said above a little more clear.  Hope you can help.  Thanks much.

    If you have CS4 then I would recommend using Mocha for AE (a planar tracking software from imagineers system that comes bundled with AE CS4). It's basically designed for the kinds of stuff you described. There are some helpfull tutorials on the imagineer systems's website:
    http://www.imagineersystems.com/support/mocha-AE/tutorials/

  • Need help with show/hide and layers moving

    I'm more of a designer, so I don't know code or CSS well at
    all. I'm doing an online portfolio for a class and need help with
    layers not staying in place in different browsers. The portfolio is
    created with a table, but I wanted to use the show/hide function
    for thumbnails of work. Are layers the only way you can use this
    function? I read layers don't work well with tables, so how else
    can I make it so when you mouse over a thumbnail, the larger image
    appears in another cell?

    > I don't know code or CSS well at all.
    That's unfortunate.
    > layers not staying in place in different browsers.
    Layers don't move. But the rest of your page does.
    Before you get too wrapped up in layers, though, please read
    this -
    http://www.great-web-sights.com/g_layerlaws.asp
    They are not good when be used as a primary layout method.
    > I read layers don't work well with tables
    They work fine with tables - but you have to understand both
    tables and
    layers to use them.
    Why not show us your page, so we can see what you are
    struggling with?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Bobbi67" <[email protected]> wrote in
    message
    news:ertd9h$h3m$[email protected]..
    > I'm more of a designer, so I don't know code or CSS well
    at all. I'm doing
    > an
    > online portfolio for a class and need help with layers
    not staying in
    > place in
    > different browsers. The portfolio is created with a
    table, but I wanted to
    > use
    > the show/hide function for thumbnails of work. Are
    layers the only way you
    > can
    > use this function? I read layers don't work well with
    tables, so how else
    > can I
    > make it so when you mouse over a thumbnail, the larger
    image appears in
    > another
    > cell?
    >

  • Need help getting images for blog aggregator

    I need help trying to grab images into a blog aggregator...
    Here is the code that gets the image.
    <!--- Get thumbnail, if exists --->
    <cfset content_to_parse = temp_description_full>
    <cfinclude template="module_get_images.cfm">
    <cfif IsArray(image_array) AND ArrayLen(image_array)>
    <cfloop from=1 to=#ArrayLen(image_array)# index="j">
    <cfhttp url="#trim(image_array[j].link_url)#"
    method="get" throwonerror="No" timeout="15" getasbinary="Auto"
    resolveurl="No" />
    <cfif IsBinary(cfhttp.filecontent)>
    <cfset tmp_filename = "thumbnail_entry_" & GetID.id
    & "." & image_array[j].file_type>
    <cffile action="WRITE"
    file="#ExpandPath(request.base_relative_url &
    '/blog_thumbnails/' & variables.tmp_filename)#"
    output="#cfhttp.filecontent#">
    <cfset thumb_image = request.img.process_image(image_path
    = ExpandPath(request.base_relative_url & '/blog_thumbnails/'
    & variables.tmp_filename), max_width = 120, max_height = 120,
    crop_area = "center")>
    <cfimage source="#thumb_image#" action="write"
    destination="#ExpandPath(request.base_relative_url &
    '/blog_thumbnails/' & variables.tmp_filename)#"
    overwrite="yes">
    <cfquery name="UpdateEntry"
    datasource="#request.data_source#" username="#request.db_un#"
    password="#request.db_pw#">
    UPDATE aggregated_blog_entry
    SET aggregated_blog_entry_thumbnail_image_tx =
    '#left(variables.tmp_filename,255)#'
    WHERE aggregated_blog_entry_id = #GetID.id#
    </cfquery>
    <cfbreak>
    </cfif>
    </cfloop>
    </cfif>
    ---------This is the module_get_images.cfm
    code----------------
    <cfset start_pos = 1>
    <cfset image_array = ArrayNew(1)>
    <cfset regex_image = "<img[^>]*>">
    <cfset regex_image_url =
    "(((https?:|ftp:|gopher:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/&##!;@:=\+~_]+[\-A-Za-z0- 9\/]">
    <cfloop condition="1">
    <cfset temp_image_pos = REFindNoCase(regex_image,
    variables.content_to_parse, start_pos, true)>
    <cfif temp_image_pos.pos[1]>
    <cfset temp_link =
    mid(variables.content_to_parse,temp_image_pos.pos[1],temp_image_pos.len[1])>
    <cfset link =
    REFindNoCase(regex_image_url,temp_link,1,1)>
    <cfif NOT link.pos[1]>
    <cfset temp_link_url = "">
    <cfelse>
    <cfset temp_link_url =
    mid(temp_link,link.pos[1],link.len[1])>
    </cfif>
    <!--- Don't show links to images --->
    <cfif len(trim(temp_link_url)) AND
    ListFindNoCase("jpg,jpeg,gif,bmp,png",left(ListLast(temp_link_url,"."),3))>
    <cfset image_array[ArrayLen(image_array)+1] =
    StructNew()>
    <cfset image_array[ArrayLen(image_array)].link =
    temp_link>
    <cfset image_array[ArrayLen(image_array)].link_url =
    temp_link_url>
    <cfset image_array[ArrayLen(image_array)].file_type =
    left(ListLast(temp_link_url,"."),3)>
    </cfif>
    <cfset start_pos = temp_image_pos.pos[1] + 1>
    <cfelse>
    <cfbreak>
    </cfif>
    </cfloop>
    This is the type of code it has a hard time getting the image
    becuase it doesn't have a regular IMG tag.
    <div style="float: left; width: 82px; height: 59px;
    overflow: hidden; background: url(
    http://pix.crash.net/motorsport/80/388493.jpg);
    background-position: center center; background-repeat: no-repeat;
    margin: 1px;" onMouseOver="showTipGallery(Stoner, Australian MotoGP
    2007);" onMouseOut="clearTip();">
    Is there a way to modify this code to make it be able to look
    for the backround: url?? I am thinking that woul help it.. It knows
    that an image is there.. It just doesn't know what to do with
    it.

    How difficult is it for you to do a google image search for large images of this subject?
    While you appear to be doing this project for an educational endeavour and can get away with mild copyright abuse as "fair use", you probably should not expect the participants in this forum to 1) work for Disney either as a direct employee or as a contractor and 2) offer their copyrighted work for free.
    If you really want to impress a teacher and a future employer, you would use your own art. Why dont you create your own movie concept? Suppose you and your classmate are up for the same employment position. Who do you think will get hired if you show work that is not all your own, while your classmate has produced all of his/her own work?

  • Need help regarding image scanning from scanner and resizing it...

    Hi,
    I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!
    Thanks,
    Avinash.
    Edited by: Kalakonda on Jul 24, 2009 8:08 AM

    Kalakonda wrote:
    I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!So what you are doing is you have a Scanner (hardware: like an HP flatbed scanner) attached to a server that you want to use as a scanning station? Is this the senario that you are talking about?

  • Need Help With Image Gallery

    Hey all, I need a simple image gallery to load when you click a button.  I've tried shadowbox but have had absolutely zero luck. I'm not sure how to load it from a flash file and I know there is work that has to be done outside of flash like in the root folder. All I need is  for a simple image gallery, nothing fancy, to open when I hit a button. If anyone could explain how to use shadowbox in lamens terms or knows how to easily script a gallery that would be amazing.

    What script version is your target? AS2 or AS3

  • So frustrated! Need help positioning image...

    Hi folks...
    I am learning CSS in fits and starts, and clearly I don't have a good enough grasp on it. I hope someone can help me.
    I created this page, and tried to place an image in the large "main content" area to the right of the slideshow. It didn't work, kept getting shifted elsewhere. So I specified it as the background image for that div instead... It looks fine in Firefox and Safari (I'm on a Mac), however, a colleague with Internet Explorer 7 on a PC says that it shows up way down at the bottom of the page after the slideshow
    I've looked at all the ways to insert the image but none of them work. I know I must be missing something very simple. Can anyone help?
    Here's the URL... http://greatdiamondrentals.com/index.html
    and the source code:
    <!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>Great Diamond Rentals, Diamond Cove, Great Diamond Island, Maine</title>
    <script src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
          google.load("jquery", "1.3.2");
        </script>
    <script type="text/javascript" src="js/jquery.cycle.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
        $('#slideshow').cycle();
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    </script>
    <style type="text/css">
    <!--
    body  {
        text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        color: #000000;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 100%;
        margin-top: 20;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
        padding: 0;
        background-image: url(images/gradient900.jpg);
        background-repeat: repeat-x;
    .twoColFixLtHdr #container {
        width: 940px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
        background: #FFFFFF;
        text-align: left; /* this overrides the text-align: center on the body element. */
        margin-top: 0;
        margin-right: auto;
        margin-bottom: 0;
        margin-left: auto;
        height: 660px;
        border-top-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 1px;
        border-top-style: solid;
        border-right-style: solid;
        border-bottom-style: none;
        border-left-style: solid;
        border-top-color: #006;
        border-right-color: #006;
        border-bottom-color: #006;
        border-left-color: #006;
    .twoColFixLtHdr #header {
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        width: 940px;
        height: 30px;
        background-color: #7092c3;
    .twoColFixLtHdr #header h1 {
        margin: 0;
    .twoColFixLtHdr #sidebar1 {
        float: left; /* since this element is floated, a width must be given */
        width: 380px;
        height: 600px;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    .twoColFixLtHdr #mainContent {
        height: 579px;
        width: 940px;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        margin-left: 0px;
        background-image: url(images/GDRmaincontent.jpg);
        background-position: right top;
        background-repeat: no-repeat;
    .twoColFixLtHdr #footer {
        width: 940px;
        top: 630px;
        height: 30px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        font-variant: normal;
        text-transform: none;
        color: #FFF;
        background-color: #7092c3;
        text-align: center;
        border-top-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 1px;
        border-right-style: solid;
        border-bottom-style: solid;
        border-top-color: #006;
        border-right-color: #006;
        border-bottom-color: #006;
        border-left-color: #006;
        padding-top: 5;
        padding-right: 5;
        padding-bottom: 8;
        padding-left: 5;
    .twoColFixLtHdr #footer p {
        margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: normal;
        color: #FFF;
        vertical-align: middle;
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    a:link {
        text-decoration: none;
        color: #FFF;
    a:visited {
        text-decoration: none;
        color: #FFF;
    a:hover {
        text-decoration: underline;
        color: #600;
    a:active {
        text-decoration: none;
        color: #CCC;
    -->
    </style><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <meta name="Keywords" content="Maine, Vacation, rentals, Great Diamond Island, Diamond Cove, vacation homes, Island, Casco Bay, Portland, Maine Coast, Atlantic Ocean, Oceanside, seaside, Family, New England, lobster, beach, beaches, islands, rental, hotel, inn, bed and breakfast, holiday, ferry, fort, historic" />
    <meta name="Description" content="Vacation on a Maine island! Beautiful historic homes available for rent at Diamond Cove on Great Diamond Island in Casco Bay near Portland, Maine." />
    </head>
    <body class="twoColFixLtHdr" onload="MM_preloadImages('images/visited_homes.jpg','images/visited_about.jpg','images/vi sited_amenities.jpg','images/visited_map.jpg','images/visited_faq.jpg','images/visited_con tsact.jpg')">
    <div id="container">
      <div id="header">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><a href="http://greatdiamondrentals.com/view_our_homes.htm" target="_top" onclick="MM_nbGroup('down','group1','viewhomes','images/visited_homes.jpg',1)" onmouseover="MM_nbGroup('over','viewhomes','images/visited_homes.jpg','images/visited_hom es.jpg',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_viewourhomes.jpg" alt="View Our Homes" name="viewhomes" width="186" height="30" border="0" id="viewhomes" onload="" /></a></td>
            <td><a href="about_the_island_2010.html" target="_top" onclick="MM_nbGroup('down','group1','about','images/visited_about.jpg',1)" onmouseover="MM_nbGroup('over','about','images/visited_about.jpg','images/visited_about.j pg',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_about.jpg" alt="images/visited_about.jpg" name="about" width="192" height="30" border="0" id="about" onload="" /></a></td>
            <td><a href="amenities.htm" target="_top" onClick="MM_nbGroup('down','group1','amenities','images/visited_amenities.jpg',1)" onMouseOver="MM_nbGroup('over','amenities','images/visited_amenities.jpg','images/visited _amenities.jpg',1)" onMouseOut="MM_nbGroup('out')"><img name="amenities" src="images/nav_amenities.jpg" border="0" alt="amenities and activities" onLoad="" /></a></td>
            <td><a href="map_2010.html" target="_top" onClick="MM_nbGroup('down','group1','map','images/visited_map.jpg',1)" onMouseOver="MM_nbGroup('over','map','images/visited_map.jpg','images/visited_map.jpg',1) " onMouseOut="MM_nbGroup('out')"><img name="map" src="images/nav_map.jpg" border="0" alt="island map" onLoad="" /></a></td>
            <td><a href="FAQ_2010.html" target="_top" onClick="MM_nbGroup('down','group1','FAQs','images/visited_faq.jpg',1)" onMouseOver="MM_nbGroup('over','FAQs','images/visited_faq.jpg','images/visited_faq.jpg',1 )" onMouseOut="MM_nbGroup('out')"><img name="FAQs" src="images/nav_faq.jpg" border="0" alt="FAQs" onLoad="" /></a></td>
            <td><a href="contact2009.html" target="_top" onClick="MM_nbGroup('down','group1','contact','images/visited_contsact.jpg',1)" onMouseOver="MM_nbGroup('over','contact','images/visited_contsact.jpg','images/visited_co ntsact.jpg',1)" onMouseOut="MM_nbGroup('out')"><img name="contact" src="images/nav_contact.jpg" border="0" alt="contact us" onLoad="" /></a></td>
          </tr>
        </table>
        <h1> </h1>
      <!-- end #header --></div>
      <div id="sidebar1">
          <div id="slideshow">
    <img src="/images/slide1.jpg" />
    <img src="/images/slide2.jpg" />
    <img src="/images/slide3.jpg" />
    <img src="/images/slide4.jpg" />
    <img src="/images/slide5.jpg" />
    <img src="/images/slide6.jpg" />
    <img src="/images/slide7.jpg" />
    <img src="/images/slide8.jpg" />
    <img src="/images/slide9.jpg" />
    <img src="/images/slide10.jpg" />
    </div>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> </h1>
      <!-- end #mainContent --></div>
        <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
        <div id="footer">
          <p>Great Diamond Rentals, c/o Phoenix Management, P.O. Box 759, Saco, Maine 04072 - (207) 766-3005 - fax (207) 571-3066 -<a href="mailto: [email protected]"> [email protected]</a></p>
          <!-- end #footer -->
    </div>
        <br class="clearfloat" />
      <!-- end #container -->
    </div>
    </body>
    </html>

    staceyetc wrote:
    Hi folks...
    I am learning CSS in fits and starts, and clearly I don't have a good enough grasp on it. I hope someone can help me.
    I created this page, and tried to place an image in the large "main content" area to the right of the slideshow. It didn't work, kept getting shifted elsewhere. So I specified it as the background image for that div instead... It looks fine in Firefox and Safari (I'm on a Mac), however, a colleague with Internet Explorer 7 on a PC says that it shows up way down at the bottom of the page after the slideshow
    I've looked at all the ways to insert the image but none of them work. I know I must be missing something very simple. Can anyone help?
    Here's the URL... http://greatdiamondrentals.com/index.html
    The width of your #mainConent <div> is too wide hence in IE it is displaced to beneath the side bar.
    Change it to 560px wide and also add float: left; as shown below:
    .twoColFixLtHdr #mainContent {
        height: 579px;
        width: 560px;
        float: left;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        margin-left: 0px;
        background-image: url(images/GDRmaincontent.jpg);
        background-position: right top;
        background-repeat: no-repeat;
      background-color:#609;

  • How To Place/Open Multiple Images Into Separate Layers For ONE Document?

    I've been searching for the answer for a long time so I figured that someone here has to know.  I have PS Elements 9. 
    So I would like to make GIFs and I know how to do so, the problem is placing in those tens of files in layers (it's tedious).  Is there a way to select multiple image files to place into a single document?  And for them to be place into its own layer?  I've tried dragging and selecting from the Open/Place menus (won't allow), SHIFT + Direction Key from the Open/Place menus (won't allow), tried opening them to drag on the Organizer and to drag from the Project Bin (again won't allow), and I've read tutorials where they say to use scripts and actions but I'm not sure what to download them in order for them to work and the links are broken anyway.
    An example of what I'd like to do:
    Open and place in 15+ screenshots into layers but in just one document.
    Each screenshot would be one layer in said document.
    ...rest of GIF process...
    I feel like there's an easier way to get this without placing in each one at a time.  I remember being able to do this on a old PS (though not Elements).  Thanks for any help.

    The quickest method is probably opening all images together from Full Edit:
    File >> Open
    Then navigate to the folder and use shift+click to select a block of files.
    The images will appear in the photo bin. Drag and drop each one into the main editing window and a separate layer will be created for each.

  • Newbie at Illustrator scripting needs help assigning image

    I am trying to copy a graphic stored in a vb.net picturebox.image into an activeLayer of an illustrator document. Can anyone supply me with code as to how to do it. Also is there a way to lookup a swatch by name and not have to rely on knowing it's index as in this line of code : pathRef.StrokeColor = docRef.Swatches(3).Color. I know the swatch's name is "CutContour" I would like to assign it by name. And lastly does anybody know any good books, links, etc.. that show you how to do this kind of stuff.
    Thanks,
    Bruce
    Imports IDAutomation.Windows.Forms.LinearBarCode
    Imports Illustrator
    Public Class FormMain
        Dim barcode As IDAutomation.Windows.Forms.LinearBarCode.Barcode = New Barcode()
        Dim illustrator As Illustrator.Application = CreateObject("Illustrator.Application")
        Dim filePath As String = My.Application.Info.DirectoryPath
        Private Sub FormMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            barcode.SymbologyID = barcode.Symbologies.Code39Ext
            barcode.BarHeightCM = 1
            barcode.XDimensionCM = 0.03
            barcode.NarrowToWideRatio = 2
            barcode.LeftMarginCM = 0.201
            barcode.TopMarginCM = 0.201
            barcode.TextMarginCM = 0.051
            barcode.ShowText = False
            barcode.CaptionBottomAlignment = StringAlignment.Center
            barcode.CaptionBottomSpace = 0.03
            Dim barcodeText As String = "CODE39UPC" 'hard code barcode content for this test
            barcode.DataToEncode = "*" + barcodeText + "*"
            barcode.CaptionBelow = barcodeText
            PictureBox1.Image = barcode.BMPPicture 'Display Barcode
            barcode.SaveImageAs(".\upc.png", System.Drawing.Imaging.ImageFormat.Png)
            Dim fileName As String = filePath + "\Roland VersaWorks.eps"
            Try
                 illustrator.Open(fileName)
             Catch err As Exception
                 MsgBox("Missing File: " + fileName)
                 illustrator.Quit()
                 Me.Close()
             End Try
            Dim docRef As Illustrator.Document = illustrator.ActiveDocument
            Dim pathRef As Illustrator.PathItem = docRef.ActiveLayer.PathItems.Rectangle(100, 0, 300, 100)
            pathRef.StrokeColor = docRef.Swatches(3).Color 'Set strokeColor to CutContour Swatch
            pathRef.Filled = False ' Don't Fill rectangle with anything
            docRef.ActiveLayer = docRef.Layers(2) 'Activate UPC Layer
            '############## I need to copy PictureBox1.image into this activeLayer! How do I do it? ###########
            Dim epsOptions As Illustrator.EPSSaveOptions = CreateObject("Illustrator.EPSSaveOptions")
            epsOptions.CMYKPostScript = True
            docRef.SaveAs(filePath + "\test.eps", epsOptions)
            illustrator.Quit()
            Me.Close()
        End Sub
    End Class

    Hi,
    Hodge-Podge wrote:
    Also is there a way to lookup a swatch by name and not have to rely on knowing it's index as in this line of code : pathRef.StrokeColor = docRef.Swatches(3).Color. I know the swatch's name is "CutContour" I would like to assign it by name.
    I have no knowledge in VB, but in javascript
    it should be called by:
    var mySwatche=app.activeDocument.swatches.getByName("CutContour");
    Regarding how to copy, i guess that you can load picture as raster / placed items or cut() & paste()... it's just ideas,
    Sorry, art.chrome

  • How to overlay an image onto separate layers while maintaining separate layers and adding no layers?

    I have a 6400x6400 image that I have divided into 100 640x640 layers. I want to overlay an separate image over the entire 6400x6400 document while making the individual layers hold part of the overlayed image.
    An anaology would be this:
    Imagine that I have created a giant board (6400x6400) and I have cut it into small pieces, where each piece is it's own layers. I want to put a picture to that entire puzzle, so that each layer holds a part of the picture and the picture is not it's own layer, but made up of the smaller layers.

    Here's one way to do it, I added the image in as a new layer, and used Clipping Masks to clip them to the layers.
    You can merge them into one layer by selecting both layers, right click and Merge Layers:
    Hope this helps!
    Julia

  • Need help Loading images with selection on a form field?

    So I'm kind of a newb.. I can do basic forms but I need to set up a form field drop down box that will give me the ability to load images correlating to the users choice. I'm at a total loss for where to start, so ANY help would be appreciated. If you know of any good books or tutorials on the subject please share.
    Thanks in advance
    Sincerely,
    Stumped4now 

    P.S. I think I'm getting a better understanding of OCGs after lots of research today. However I still seem to be missing something
    var docOCGs = this.getOCGs();
    for (var x=0; x < docOCGs.length; x++)
      if(docOCGs[x].name == "Layer1")
      docOCGs[x].state = !docOCGs[x].state;

Maybe you are looking for