Gallery - Link from large image

Having started with the spry image gallery, I am having
trouble adding a link using the large image. Anyone know how to
extract the image ID and make it a link for the large image to go
to a detail page.

Hi Henry,
Here's a way how to do that:
1. Add a js function that sets a new url for the image
onclick everytime the source of the image changes. Add it in the
head of the page (right after the XMLDataSets declarations):
// this function is called every time the source for the main
image is changed
function SetMainImageLink(curRow) {
var img = document.getElementById("mainImage");
if (!img)
return;
var path = 'product_detail.cfm?ID=' + curRow["@path"];
img.onclick = function() {
window.location.href=path;
2. open gallery.js file and locate this function: "function
ShowCurrentImage()"
3. call SetMainImageLink from within ShowCurrentImage. Here's
the full source for the modified function ShowCurrentImage()):
function ShowCurrentImage()
var curRow = dsPhotos.getCurrentRow();
SetMainImageLink(curRow);
SetMainImage("galleries/" +
dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"],
curRow["@width"], curRow["@height"], "tn" + curRow["ds_RowID"]);
4. (optional) you can edit the img tag and add a style on it,
so it display a hand cursor when you mouse over it.
<img id="mainImage" alt="main image"
style="cursor: hand; cursor: pointer;"/>
Hope this helps you,
best regards,
Dragos

Similar Messages

  • Web Flash Gallery: Problem setting Large Images size

    When using the Lightroom Flash Gallery I am not able to change the size of the Large Images (Web | Appearance | Large Images | Size). When I set the size to Medium or Small, the large images always ends up with the same size as when set to Large. Only when setting the size to Extra Large there is a slight change in size.
    How can I change the Large Images size to Medium and Small?
    Jørgen Johanson

    jools2005 wrote:
    Adobe please address this issue.
    This is a User to User forum not official Adobe support. Yes, Adobe staff may participate from time to time, but not often enough that you can depend on them reading your post. Therefore, I suggest that you support a bug report using the facilities provided at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Thumbnail image links to larger image - how?

    Mac OX 10.4.11 - GoLive CS(1) I want to create a series of thumbnail images that would act as link to a single large image area (see example http://www.markvelasquez.com/gallery.php?cid=1&pid=5 but ignore the dubious images). 10 or so different thumbnail images would show singularly in the large image area only, and only when activated by a click on a thumbnail.
    I have used slide show (SlideShow.action) in the past but this does not allow for user randon choice, is there an action for this in GoLive.

    Hi...
    You didn't mention whether you wanted a free or commercial Action so have a look at CyberGallery 6.1 for GoLive at http://www.actionscafe.com/Features_Folder/CyberGallery/cgfeatures.html. The GoLive version doesn't have some of the later Dreamweaver features but will let you set up a thumbnails that expand into full size display images when they are clicked.

  • Help needed trying make thumbnails from large Image Files

    I posted this to the Flex message bored, too. I didn't notice
    the Actionscript 3.0 until after. Sorry. Anyway, I have some
    ActionScript 3.0 code, created with Flex that will load a large
    JPEG image (say 3000x2000 pixels) that I'm trying to create a 100
    pixel thumbnail. I have the code working where I generate the
    thumbnail, but it's not maintaining the aspect ratio of the
    original image. It's making it square, filling in white for the
    part that doesn't fit.
    I've tried just setting the height or width of the new
    image, but that doesnt render well, either.
    To see what I'm talking about, I made a screen shot, showing
    the before image, and the rendered as thumbnail image:
    Image of demo
    app at Flickr.
    Now, there's a few things important to note. I'm saving the
    thumbnail off as a JPEG. As you can see in my sample application,
    the original renders fine with the proper aspect ratio, it's when
    I'm copying the bytes off the bitmapdata object, where I need to
    specify a width and height, that the trouble starts. I've also
    tried using .contentHeight and .contentWidth and some division to
    manually specify a new bitmapdatasize, but these values seem to
    always have NaN.
    private function makeThumbnail():void{
    // create a thumbnail of 100x100 pixels of a large file
    // What I want to create is a a thumbnail with the longest
    size of the aspect
    // ratio to be 100 pixels.
    var img:Image = new Image();
    //Add this event listener because we cant copy the
    BitmapData from an
    /// image until it is loaded.
    img.addEventListener(FlexEvent.UPDATE_COMPLETE,
    imageLoaded);
    img.width=100;
    img.height=100;
    img.scaleContent=true;
    img.visible = true;
    // This is the image we want to make a thumbnail of.
    img.load("file:///C:/T5.jpg");
    img.id = "testImage";
    this.addChildAt(img, 0);
    private function imageLoaded(event:Event):void
    // Grab the bitmap image from the Input Image and
    var bmd:BitmapData =
    getBitmapDataFromUIComponent(UIComponent(event.target));
    //Render the new thumbnail in the UI to see what it looks
    theImage.source = new Bitmap(bmd); //new Bitmap(bmd);
    public static function
    getBitmapDataFromUIComponent(component:UIComponent):BitmapData
    var bmd:BitmapData = new
    BitmapData(component.width,component.height );
    bmd.draw(component);
    return bmd;
    }

    Hi Tod,
    Take a look at this post:
    I'll have to say the smoothing of the thumb is not perfect, but maybe in combination with your code.. you get good results.
    Post a solution if you acheive better smooth thumb results.
    Link to forum post:http://forums.adobe.com/message/260127#260127
    Greets, Jacob

  • In Design CS 5.5, Can I link to large image files ??

    Dear friends,
    We are creating a 111 page file that links to about 120 large picture files.  Each picture file is about 40MB.  Doing this seems like it will slow down my computer's ability to quickly edit the file, because it will be so large.
    QUESTION: What are some ways around this?
    What is recommended?
    Shall I place the files, and then somehow TURN DOWN the "display performance" ?
    Or should I make SMALLER versions of all 120 files, then replace them with the large files when I am about to print to PDF?  (That sounds like a LOT of work)

    I'm not sure you are using the term "embedding" properly here.
    You want to link the images by using File > Place... That includes a pointer to the entire file and a preview inthe ID file, but not the actual image data. In order to embed (which saves a complete copy of the image data inside the ID file and will make it HUGE), you must slect the link in the Links panel and choose Embed from the panel flyout menu.
    It's also possible to copy and paste vector drawings into ID and the will not show in the links panel at all. I recommend against this in favor of Placing them as well. Complex pasted vector objects can cause significant slowdown whenver the screen has to be redrawn.

  • Creating Thumbnails for web page links to larger images.

    I want to create thumbnail images for linking to web page linking to enlargements. I'm using PhotoShop Elements 2.0 on a Dell 2400, XP Home Edition with 512mb RAM and 35gb storage available.
    The language I read in help sections doesn't addressed the issue I want help with. I believe it addresses saving thumbnails for Windows and Mac using .tiff or .psd format, not the .jpg or .gif I need. It seemed like there should be a way to change the thumbnail format. Any suggestions would be appreciated.

    Hi Ted,
    You can use the ' Web Photo gallery ' as Jodi suggested for a large
    number of images or,
    Open your image, click the bar at the top of the displayed image &
    reset the size to what you want, then 'File', 'Save for Web' & save as
    .jpg or .gif. .jpg gives more options for reducing file size so that
    is what I use. Close the image without saving
    HTH,
    Alex,

  • Photo Gallery Module - Customize large image size

    I need to figure out how to customize the size of the full image on the Photo Gallery Module. I have a couple of clients using this module that do not understand how to crop and resize images before uploading them.
    I understand this can be done through CSS, but the issue I foresee is that the original image is still used which could have a large file size. Is there a workaround for resizing the full size image and also reducing the actual file size? Either through CSS, JS, or maybe even the new BC Liquid engine? Any help would be appreciated. Thanks.

    You can go to the file manager and use the resize option on images in there.
    BUT
    They need to do this outside of such systems, BC will only edit based on numbers and math, if the client gets the wrong proportional values it will screw up the images, the system will not crop the images, only scale them so things can turn out squashed etc.
    If images are being used on the web as an indicative representation of something for a site, they need to be done properly and out of the system before they come in.

  • How can I link from an image to a part of the book?

    I know how to link text but I want to be able to tap on a picture which then brings me to a page in the book... Is this possible? It doesnt seem to allow me to create a hyperlink for an image.

    Hello, if you have the font that Photoshop is supposed to use to write the barcode, and each image is also listed in the spreadsheet, you can use the little known feature called variables: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.h tml
    see this video: 
    http://www.youtube.com/watch?v=LMAeX5pexNk
    Or this one:
    http://tv.adobe.com/watch/adobe-evangelists-julieanne-kost/pscs5-working-with-variables/

  • Mailto link from embedded image

    Hello, I have to use a graphical signature for outgoing company emails and wish to have the graphic linked to a mailto: tag. I tried inserting the code in Mail's signature preferences, but the HTML tag shows up in the email, not a hyperlink. Can anyone tell me how to do this ? I am using 10.4

    start composing a new message and insert the image there. add a mailto link to it using edit menu->link->add. then copy the whole thing and paste it into the signature creation window.

  • Displaying Large Images and Out of Memory Error

    hi,
    I am relatively new to JAVA and I have been trying to display a large jpeg in a scrollpane. The image is about 30 mb in size and is very long. When compressed the image is very small (1mb) but when uncompressed it increases in size due to the black background. I have been looking all over the place to find a method to display such a large image. I read a little bit about the JAI and its tile features but I am not really familiar with it. Also the image has to be displayed in an applet. the whole mess has to do with the JAVA VM memory restrictions as it does not have enough memory to process the image. Is there a way to uncompress a part of the JPEG and display it or assign addittional memory to JAVA. I will really appreciate any help on this topic.
    thanks

    Hiya.
    I can't say I know how to save Java from large images, but you can up the memory allocated to the JVM:
    java -Xmx120M ...
    will give 120M to the JVM (max). There is an -Xms also which gives the initial allowed space.
    Regards.
    Paulj.

  • Centering Images using CSS but having links on the Images

    Hi all,
    I have a problem on centering an image using CSS. I read on many forums that you have to use margin-left , margin-right and set to auto. and also set the display:block which I had done.
    The problem is if I want to have a link from the image. Because I have set the display to block, the link will span the entire container containing it! How do I resolve that? I only want the image to be linkable and not the entire container!
    Thanks for reading!

    Murray *ACP* wrote:
    Because I have set the display to block, the link will span the entire container containing it!
    That's incorrect.  If the display:block is applied to only the IMAGE, the anchor tag will be exactly the same dimensions as the image and will not fill the container.
    Hi Murray,
    Weirdly it does in my experiments. (code below). Even if I set the 'a' tag to the width of the image it still makes the whole <div> container clickable:
    <!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>
    <style type="text/css">
    #imgWrapper {
        width: 900px;
        margin: 0 auto;
        border: 1px solid #000;
    #imgWrapper img {
        margin: 0 auto;
        display: block;
    </style>
    </head>
    <body>
    <div id="imgWrapper">
    <a href="http://www.bbc.co.uk"><img src="slice_2.jpg" width="595" height="130" /></a></div>
    </body>
    </html>

  • Viewing Larger Image Version / in New Window/Tab

    I have added in the links to larger image files to my lower res images. When I click those images in Preview it takes me out of the page and to a new window to view the larger image. Will this larger image be viewed in antoher tab/window? I see the option to click "Open in new Window/Tab" in the hyperlinks menu. I have not activated that for each image link. Should I?
    I want to make sure I don't leave the site and don't maintain a tab to get bak to the page I was on after I view a larger image.

    Yes you will need to do it for each link. Wether it opens in a new tab or a new window really depends on what browser the user is using and how they have it set up.

  • CS3 How to style larger image window that thumbnail links to

    Hi,
    Can anyone advise on how to format the larger image a thumbnail links to? When I click on the link created from the thumbnail, the larger image just comes up tucked in the top left corner. I am creating this gallery manually because I don't have Fireworks, only CS3, which Fireworks didn't come with.
    Any helpful suggestions would be greatly appreciated.

    Acrobat Pro

  • Set link for main image in gallery

    Hi, how do you set link to the main image in the photo
    gallery? I was able to add photo caption using the
    spry:detailregion but cannot do use the same method for the main
    image because Spry won't allow nested div.
    I saw a thread that talked about changing the SetMainImage
    function but I've tried that it doens't seem to work. Can you show
    me how to edit the code to do this? Thank you.

    ok, after a day of trial and errors, I found a little fix for
    this. It is not pretty but it does the job. First, change the
    mainImageOutline div to a link. Second, add in two lines of codes
    into the function ShowCurrentImage()
    html file
    <a href="#" id="mainImageOutline" style="width: 0px;
    height: 0px;" ><img border="0" id="mainImage" height="250"
    width="250" src="images/spacer.gif" /></a>
    gallery.js
    function ShowCurrentImage()
    var curRow = dsPhotos.getCurrentRow();
    // added by Tri
    var tri_imgHolder =
    document.getElementById("mainImageOutline");
    tri_imgHolder.href = curRow["@newsLink"]; // this pull the
    link from the XML file
    // added by Tri
    SetMainImage("2006_home_news/" +
    dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"],
    curRow["@width"], curRow["@height"], "tn" + curRow["ds_RowID"]);
    link in the xml file
    <photo
    path = "Domlg.jpg"
    width = "440"
    height = "250"
    thumbpath = "domthumb.jpg"
    thumbwidth = "90"
    thumbheight = "70"
    newsLink="
    http://www.tringuyen.net">

  • Button to b clicked and large image shown on the stage(link to swf file here)

    I have a button when clicked is supposed to show a larger image of the button/ I am new to the code and think if I could see and example it would help. This is a school project. I am failing as of now.
    how do I upload my files to here so I can show   http://threadcontent.next.ecollege.com/(NEXT(54b34a37e8))/Main/CourseMode/Thread/DownloadA ttachment.ed?virtualFileId=961613945&GoldenTicketParams=_u=8538800;_dt=634657009144447173; virtualFileIDs=956864518,956864621,956864990,960296914,960355361,960465721,960465764,96037 9092,961379343,960908613,961013978,961014291,961613945,961035853,961618981,961042519,96144 4490,961569920,961629398,961629452;&GoldenTicketSignature=35-AA-34-CE-10-A6-FD-4F-D1-DD-73 -4C-A9-EF-8D-9D-63-E5-87-88-FB-D4-4D-15-06-BB-82-8A-9E-F2-36-DC
    I believe this is the download link to the swf I have you can see the buttons click and sound and over and when pressed they are supposed to show the larger image of the buttons original image that you see before you hover

    stop();
    trail_btn.addEventListener(MouseEvent.CLICK,
    trail);
    function trail(event:MouseEvent):void
        gotoAndStop(10);
    and the link I gave is the download link from my class at AI Online its perfectly fine

Maybe you are looking for

  • Please help! The alias can't be opened because the original item can't be found. Portable Hard Drive, Macbook, OS 10.7

    Hi folks, Desperate for some help! I have a very cluttered, slow Macbook Pro running 10.7.5. Bought a 2TB WD My Passport for Mac (2TB) with the intention of transferring my many, many files and folders over to it, to increase my memory and boost the

  • Getting error in Trail Balance Report's accounting flex field values

    Hi guys, whenever run the Trail Balance program I am getting some error in Accountng Flex Field value for particular account or transaction.Actually I am not able to find excat error in report why it came. plz tell me how to identify and how to check

  • StarOffice update 10

    When installing the new update I receive the following error message: Error 1316A network error C:\windows\installer\staroffice8.msi Can anyone help Thanks

  • Light Table: Image Sizes?

    Is there any way to specify the exact sizes of the images placed on a Light Table? I have a multi-frame I want to print pics for, and a Light Table is a perfect way to print multiple images per page- but I can't seem to figure out how to make, say, o

  • Error code on app store windows 8.1

    Since I installed Windows 8.1, because I had to reset my computer, I can't install apps anymore because of an error. I don't know how to fix, help please... Error code: 0x80070241