Default image in Albums index

I was given this HTML snippet by Cyclosaurus to add to my "Ablums" template index page since I didn't want the first picture as the default in each of the pages:
<script type='text/javascript'>
var albumIndex = 0;
var imageIndex = 5;
function setGridImage(albumIndex, imageIndex) {
try {
mediaDiv = parent.document.getElementById('gridEntry' + albumIndex);
slideDiv = mediaDiv.widget.getElementById('slideshow_placeholder');
mediaDiv.widget.p_scrub(slideDiv,imageIndex);
mediaDiv.addEventListener('mouseout', function() {this.widget.p_scrub(slideDiv,imageIndex);})
clearInterval(chkGridEntry);
} catch (e) {}
chkGridEntry = setInterval('setGridImage(albumIndex, imageIndex)', 500);
</script>
Unfortunately, it doesn't seem to work. For example, if I choose albumIndex "0" as the first album and "24" as the imageIndex, the default picture is set to image 38. It doesn't even work for the first two or three pictures. What am I missing?
http://web.mac.com/douglasm/2009/January/January.html
-Doug

..in case you like to know, the imageIndex you looking for is 15
He he! I'm sure there's a solution. It's just not clear to me right now why the images don't seem to line up with the numbers from the beginning. I'm assuming the numbers start with 0 and go up from there in order that they appear on the page. Since I have a three-up layout, the first picture would be "0" and the picture under it would be "3". Since Sylvia is the hostess of the evening, I thought it would be appropriate that her picture was the default image. I'm having fun in San Francisco for Macworld, no hurry right now.
-Doug

Similar Messages

  • Grab default image type

    I use grab a lot, and i mean a lot, for my blog, and for album art. When I upload pictures to my blog. They only accept jpeg and a couple other image types. Grabs default image type is .tiff. Is there any way to set the default image type to .jpeg?

    No. Grab generates tiff files. The Grab help suggests using Preview to open and convert the file types.
    There are a number of other image conversion tools out there as well.
    You might also try CMD-SHIFT-4 - this permits you to select a portion of your screen and saves it a .png file. Most modern servers understand png.

  • Changing Default Image Format After Creating Folio

    Is it possible to change the default image format to "PDF" after creating the folio. I just realized the PDF can allow for zooming on the iPad. Would this make for a larger file size?

    Hi
    follow this :
    step 1: save a image in gif format with z or y intial letter
    step 2: goto tcode smw0
    step 3: select Binary data
    step 4: click find button
    step 5: click execute
    step 6: goto settings > maintain MIME type
    step 7: click create > type =*.gif >extension =.GIF click ok and then go back
    step 8: click create >OBJ Name=name of image with extension>desc=any>click import
    step 9: select image click local object
    step 10: tcode sm30
    table name >SSM_CUST click maintain
    enter parameter RESIZE_IMAGE value =no
    START_IMAGE value =name of object name / image name with extention (in capiatl letter)
    step 11: click save
    step 12: logoff and login.
    Also refer to http://it.toolbox.com/wiki/index.php/Change_the_logo_on_the_right_hand_side_in_SAP
    if you face any issues
    This will do
    Rohit

  • Can you change the default image capture program in RH8?

    Can you change the default image capture program in RH8? I have used Snagit for sooo many years and I would like to use it by clicking the Caputre button.  I know how to change it to edit pictures with Snagit (Tools > Options > Associations), but not to capture.

    Looks like a feature request.
    Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I have a default servlet and an index.html?

    Hi,
    I writing a small webapp to test/understand the 2.2 Servlet Spec. I am deploying this as a WAR to Orion, Tomcat and Silverstream.
    The app's name is: "myapp"
    My application has an index.html, which is listed as the sole welcome-file in the welcome-file-list element in the app's web.xml.
    The interesting thing is that, after adding a default Servlet (<url-pattern>/</url-pattern>), I can no longer access the app's index.html either implicitly or explicitly:
    1. Implicit:
    - http://localhost/myapp
    - http://localhost/myapp/
    2. Explicit:
    - http://localhost/myapp/index.html
    - http://localhost/myapp/index.html/
    All of these invoke the Default Servlet in all 3 app servers.
    Question: How can I have both a default Servlet and an index page?
    Thanks in advance.
    Miles

    you can define it in the web.xml file
    look at the dtd, element "welcome-file-list"

  • Set default image for no image found

    Hi Folks,
    I have a folder full of images and when en images is called form that directory and not found I would like the default image to show up.
    I have added an HTAccess file with this content:
    ErrorDocument 404 default.jpg
    And added a default.jpg image in the directory.
    I have used this approach successfully on a few other sites but in this instance when I open a page with a missing photo I still get the standard ugly missing image icon. However, if I open that image in a new tab I get a page with the text 'default.jpg' on it.
    NOt sure why that happens but I guess it's something about it being a different hosting set up. Perhaps there is another way to do this that will work on this set up.
    Anyone got an idea how I can fix it?
    Cheers
    Dave

    If I remember well, in the Report Attributes, you should select the linked column. At the link image, there are 2 edit images(the default is the big one), but there is one more image which is smaller.
    Hope it helps.

  • How do I get my iPhoto 4 images and albums into iPhoto5?

    Thought for sure I would find a FAQ listing for this but can't find it anywhere. I copied all my albums and images from CD back up into iPhoto5. But when I log out and log in and open iPhoto5 none of my old images and albums are there. I do see imported libraries for 2002, 2003, 2004 but they are empty. Sorry if this question is redundant (which I'm sure it is) but since I can't find a FAQ file anywhere…
    Also, I have a G5 iMac at home and a dual G5 at work. Any way to specify which is which in profile

    Richard:
    So you only have jpg files on those CDs, right? There are no other data files, album folder, etc. in there.
    I copied all my albums and images from CD back up into iPhoto5.
    By that do you mean you dragged them from the CDs into the open iPhoto window? If you dragged them into the iPhoto Library folder then that's the wrong way to do it. You must import the image files into iPhoto from outside the iPhoto Library folder. Along those lines here are two Apple KB documents that you should be aware of, particularly the second one:
    iPhoto Library Description
    Don't tamper with files in the iPhoto Library folder from the Finder
    What happened to your original iPhoto 4 library folder? Do you still have it intact? If you do then you can place it in your Pictures folder, launch iPhoto 5 and it will find it and tell you it needs to convert the library to version 5. Once done you should have your library converted you'll have everything back up and running, including the albums, rolls, keywords, etc.

  • How do you change the default image at the login screen??

    I want to change my default image that is at the login screen. The image is also in the desktop display(so i can set it as my background), but those are the only two places I can find it. Is there a way I can delete the image from my computer?

    Well quick and dirty is to replace the applelogo.tif file with a .tif of your own.
    Read this site for cool ways to hack your login window:
    http://tinyurl.com/reanz
    Richard

  • How to get larger images in albums?

    I just realized that when you click on a thumbnail in one of my albums, the larger image is actually smaller than the original photo! All the photos I've put into my web albums have been shrunk to fit into the album display area. For instance, a photo that normally displays about 7 inches high when I view in Preview, comes out about 4.5 inches tall when displayed in my web album.
    How can I get it to display photos at actual size?

    Ray Dunakin wrote:
    I tried turning off "optimize images", but they still were showing up at the reduced size.
    providing a url to your site so people could have a look at what's going on may help...
    What I'd really like is a way to designated specific images to display at a larger size -- most don't need to be very large, but some do.
    I think that's not possible in iWeb PhotoPages... As you choose one format for all. However to get larger images in albums click on a photo and a window will popup called "Photo grid". You can increase the size of the images displaying by reducing the spacing and/or decreasing the number of columns.
    Regards,
    Cédric

  • Default image in master detail

    I'm trying to create a thumbnail master detail page. Mostly good so far, works ok. What I'd like to do is set the default image when the page loads to either the last image, or to one I choose. This is a photo of the month page, so I'd like the default to be the current month, which is the last one in the list. Any way to do this? Thanks.

    BTW, the data is in an HTML table, but I'd like the same behavior (defaulting to last or at least a specified master region) in xml if that's easier. I searched the forums, but the only link I found was either wrong or gone.

  • Dynamic image showing default image instead of requested image

    I'm using CR4E v2.0 to incorporate reports into my application which is built into an ear file and deployed with Jboss 4.2.2 at the moment. I have an image in my report that I am trying to set dynamically from a URL in a database,  but when the report is run only the default image shows up. The URL in the database for the logo is http://localhost:8087/module_Reporting/Logo.gif and I verified that exact string is being returned to the report, but the image is not changing from the default placeholder.
    The formula for the graphic location is:
    HdrPictureLogoClient : Graphic Location
    // Return values: Any string value.
    If Not IsNull({REPORT_PARAMETER_FACT.LOGO_URL_PATH})
    Then {REPORT_PARAMETER_FACT.LOGO_URL_PATH}
    Else "";
    I'm using a com.crystaldecisions.report.web.viewer.CrystalReportViewer in my jsp page to display the report and this is the part of the page that handles the viewer
    CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
    // If the report is not saved in the session you just keep getting prompted for parameters
    Object reportSource = session.getAttribute("ReportSource");
    if (reportSource == null)
         reportSource = clientDoc.getReportSource();
         session.setAttribute("ReportSource", reportSource);
    //     set the reportsource property of the viewer
    crystalReportPageViewer.setReportSource(reportSource);
    // setting the optoins in the Crystal Report toolbar
    crystalReportPageViewer.setDisplayGroupTree(false);
    crystalReportPageViewer.setHasToggleGroupTreeButton(false);
    crystalReportPageViewer.setHasSearchButton(false);
    crystalReportPageViewer.setHasRefreshButton(false); 
    crystalReportPageViewer.processHttpRequest(request, response, application, null);
    The viewer is contained in an iFrame and is disposed of in the containing jsp.
    Am I missing something? Any help would be greatly appreciated!

    Thank you very much for your reply, but I am not trying to add an image into the report at run time, I am trying to change the source of the image. There is an image in the report as a place holder (called HdrPictureLogoClient) and the code that handles the source of the image is in the .rpt file also as this formula:
    HdrPictureLogoClient : Graphic Location
    // Return values: Any string value.
    If Not IsNull({REPORT_PARAMETER_FACT.LOGO_URL_PATH})
    Then {REPORT_PARAMETER_FACT.LOGO_URL_PATH}
    Else "";
    {/code}
    I have discovered that it works just fine with a file path name like C:\logo.png in the database but it does not work with my web URL.
    I just find it extra interesting because when the report was originally created in a Crystal Reports Project in myEclipse and deployed as an expanded war directly to jboss running in myEclipse it worked fine, but now that it is being incorporated into an EJB project which is built into an ear file that is deployed in a jboss service running outside of myEclipse it no longer works.

  • Is there a way to get new album index styles?

    I would like to use a different album index style other than the one offered in I web. Is there a way to get new ones or make different styles?

    unless apple provides tools and guideline/tutorials, you will have to copy+paste.
    but that is very limited because html snippet display your code in an iframe, which means static size, dead zone, can't inject code onto your page and you can't do anything complex.
    with real iweb widgets, you can do away with all the above.
    here is Lytyebox slideshow using iweb photos page: http://iweb3widgets.cyclosaurus.com/Lytebox/Photos.html
    here is a complex widget to inject code onto the page and be stealthy: http://temp.cyclosaurus.com/revolving/CodeInject.html
    btw, I'm on 30+ widgets with no help from apple... what about iweb experts?
    http://cyclosaurus.com/WidgetAdditions/iWeb3Widgets.html

  • Y there is no option in iPad mini to directly go down or at last image by jus tapping at right corner, same option is available with iPhone , I hv 7000 images in album, it gets difficult again n again to scroll down 7000 images n come at end

    Y there is no option in iPad mini to directly go down or at last image by jus tapping at right corner, same option is available with iPhone , I hv 7000 images in album, it gets difficult again n again to scroll down 7000 images n come at end

    We are fellow users here on these forums, as far as I know Apple haven't said. If you want that feature then you can try leaving feedback for Apple : http://www.apple.com/feedback/ipad.html

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

  • What exactly is the Default Image for?

    I have finished my first iPhone app and am planning to upload it soon to the app store. One of the many questions I have encountered is the Default Image, I know how to create it, just make a screenshot in Organiser, and then use the Save as Default Image option, but what is this? Is it a splashscreen? I have looked at a lot of the apps on my iPhone that I have downloaded over time but none of them seem to have anything I could recognise as a default image, usually they just open to the main screen.

    Hi Copernicium, and welcome to the Dev Forum!
    Yes, you can think of the Default image (usually Default.png) as a splash screen and you've probably been seeing that image in most of your downloaded apps without knowing it.
    The purpose of that image is to provide something other than a black screen when the app is loading. I.e. you don't bring it up with your code, the system looks for Default.png when the user touches your icon on the home page. If the file is found, the system displays that image until your app is up and running.
    You're free to use almost any image you want as the Default, but the guidelines recommend an image that transitions smoothly into your first screen, or better yet an image which is identical to the first image your code brings up. When you're unaware of the transition from the default image to the application launch, that generally means the developer has done a good job.
    The purpose of the +Save As Default Image...+ button in the Organizer is to make it easy to install your startup screen image as the Default. If your startup image is static it's easy. You just capture that screen, hit Save As Default and you're done. Note that if your screen capture includes the status bar, it will be masked by the real status bar when the Default image is displayed. So just two clicks in the organizer can produce and install a Default screen that's identical to the actual startup screen.
    If your startup image is dynamic (e.g. the "real" splash screen), but always begins with the same view, you just need to set a breakpoint in your code so you can capture that very first image.
    And yes, you'll have a better app if you add Default.png to the bundle before you upload to the Store. When last I looked, that wasn't a requirement, and there are still lots of apps that load with a black screen. But I wouldn't be surprised if Default.png is now or soon will be a requirement. It certainly helps to placate the user when your load time is anything over the absolute minimum.
    Hope that answers your questions!
    \- Ray

Maybe you are looking for

  • Please help: Application doesn't work after upgrade to Workshop 8 sp2 from sp1

    Hi, Our application worked on workshop 8 sp1. After we upgrade system from sp1 to sp2, some of the part doesn't work propertly any more. 1. netui:select seems not bind form data propertly. For drop down list box in forms, although user has chosen som

  • How to drag and drop a picture into a mask?

    I have a text box which has a masked photo in it. I used to be able to click on a picture in my web browser, drag it over to iWeb, and drop it into the mask with one quick and easy motion. I made some changes to my web site and now I can not do this

  • XI Content Not working Properly for ISR to Triversity Integration

    Hello Everyone, I am not very sure whether this is the right forum for posting such a technical question, but since the context is basically functional, I am firing away with the question: We are working on a ISR-XI-Triversity Integration scenario. T

  • Date effectivity - ECM

    Dear All, I am working on ECM using date effectivity. I create a change master with date effectivity. But when I make changes to BOM using this change number the effects are not getting reflected. For eg. I create a change request ( change no.) with

  • Is there a way to attach cover art to MP4's in the Razr Maxx?

    I have put several movies in the Razr Maxx but there is no cover art showing. I was wondering if anyone knew how to do this? I have the JPG's. Currently, I have them in their own folders so the artwork shows...but in the video app, they dont of cours