Need advice/idea about Image gallery

Hello to ALL!!!
I'm trying to make an dynamic image gallery WITH!!! some
active buttons above (for example: BUTTON1 with function "delete"
and BUTTON2 with function "update") a picture and some "dataoutput"
below (for example:Price). So, separate cell must look like:
BUTTON1 BUTTON2
<Image>
PRICE
For implementation this task I have:
1) mySQL database "gallery" with table "test" and columns
"Id", "path to image", "Price"
2) 2 gifs: BUTTON1, BUTTON2
Before my first trying I thought that it's simple, and I've
tried:
<!---action page---->
<cfquery name="qTest" datasource="gallery">
SELECT * FROM test
</cfquery>
<div id=imagecont>
<cfoutput>
<cfloop query="qTest">
<img src="../Button1.gif />
<img src="../Button2.gif /><br>
<img src="#qTest.path to image#" />
<p>#qTest.Price#</p>
</cfloop>
</cfoutput>
</div>
And it worked normal. BUT!!! Looping had a vertical
direction! And any CSS rules that I've applied to DIV "imagecont"
(weight, height) hadn't any effect.
So, what I've get:
I see all necessary information (on browser), but I don't
know, how to format it with my dreaweawer cs3 and CSS.
And I afraid that I've chosen a "wrong method" (I mean my
code above)
Please, give me some recommendations or advices.
How can i archive my needs?
How to use CSS in div tag, which includes <cfloop>
code. I've also tried to use CSS with structure like:
<div id=a>
<cfoutput>
<cfloop >
<div id=b>
DATA
</div>
</cfloop>
</cfoutput>
</div>
But (div a)'s CSS rule HEIGHT take's no effect on <div
id=b> :(
And what about useful technique for displaying " action
buttons" above each image in dynamic image gallery???
Great THANKS for your answers/comments!!!!

the css attribute you are looking for is FLOAT.
see if something like
http://www.photos-of-laos.org/top-rated.cfm
is
what you are after in general images layout terms. feel free
to check
the generated html :).
re general css knowledge i highly recommend the book
"Bulletproof CSS"
by Mark Grabinski.
re the 2 buttons above the image: consider turning them into
css image
overlays instead (when the buttons appear OVER [not above]
the image
only when a user mouses over) - it looks much better that
way.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • I need to create an image gallery

    I'm looking for a tutorial which explains me how to create a simple AS3 image gallery driven by an XML file.
    The gallery I need is really simple:
    - an horizontal bar placed on the bottom containing the thumbnails which scrolls left and right according to the mouse pointer
    - clicking on a thumbnail the full image must be shown above the thumbnails' bar
    - buttons for prev and next image
    - clicking on the button which opens the gallery I must be able to pass a variable to make the gallery load the proper xml file (I've got 6 different categories to show)
    That's all I need.
    Do you know where I could find a tutorial?

    I'm trying to do it by myself.
    I've decided to give to the xml file this structure
    <imgList>
        <img thumb='img_001_thumb.jpg' full='img_001_full.jpg' desc='image 001' />
        <img thumb='img_002_thumb.jpg' full='img_002_full.jpg' desc='image 002' />
    </imgList>
    I've found some tutorials where they read the attributes in this way
    xml.img@thumb
    xml.img@full
    xml.img@desc
    where xml is an xml variable containing the xml file's data.
    I think that syntax is for AS2, while I'm using AS3 and it say to me that a semicolon is expected before atsign.
    How can I read the attributes thumb, full and desc in AS3?

  • Need work around for image gallery with password protected URLs

    Is there a way to display an image gallery that has password protected URLs?
    I can build the image gallery in Siena using an excel table with a list of the images and when I preview the app inside Siena I get the expected credentials prompt from IE, and I enter the credentials and the images load and display with their captions perfectly.
    There are 4-6 images in the gallery.
    When I publish and produce a store app, the app errors out with can’t connect and obviously fails on
        var GenericInitError = "The app could not connect to the server. Please try again later.",
            GenericInitTitle = "Network error";
    Most likely because Siena wants to preload everything and there is no way with preload to enter credentials.
    I am looking for any alternatives that would let me get around this.
    TIA
    -- Barb Bowman

    On Mon, 24 Mar 2014 05:10:01 +0000, Radu Gruian (MSFT) wrote:
    >One possible thing to do would be download and embed the images into your app, eliminating the need for password-based authentication.
    Nope. The app accesses a group of IP Security cameras. Static images would not
    make any sense. And authentication is required. Not negotiable.
    -- Barb Bowman

  • Need advice & answers about updating DV7 Processor

    I've had an HP Pavilion dv7t Intel Core 2 Duo T6400 2.0GHz 4GB 320GB 17.3" for a little over a year. (I have no idea what the processor # is) Recently the fan started getting louder so I took it in to be cleaned b/c my hands are paralyzed and I can't work on the unit myself. The tech got the fan running smooth again w/ graphite powder. Right after that he said the laptop wouldn't stay running for longer than 5 mins before shutting down. As of right now he says the CPU is fried. I asked if he could pull it and test it and then he informed me that the CPU was soldered to the motherboard. (it was running fine until it was taken to be cleaned except for loud fan noise)
    Ok, so if the processor has gone out. Whats a good replacement/upgrade if possible for this system and how much will a CPU and motherboard set me back?
    Any advice, tip or suggestions would be greatly appreciated.
    -Thanks

    The processor in not soldered for your model, you should consider other technician.
    Take a look dv7 Maintenance and Service Guide
    I'm guessing he did something wrong when cleaning and adding new thermal paste.
    CPU is the most rare part to fail.
    Pavilion DV2922TX, XP-SP3 32bit, Intel T5750 2.0Ghz, Nvidia Geforce 8400M GS with 128MB, 4GB 667 DDR2, 250GB HDD

  • Need Advice, thinking about filing Chp. 7

    Hey guys, Im really thinking about filing chapter 7. I currently owe 34k in credit cards and also have personal loan for 8k. I'm barely able to make payments and I really need some relief. It gets very stressful. Will filing bankruptcy help my situation. I just want to be able to start over. I have 10 credits cards and mostly all of them are maxed out with my nfcu with the highest balance of 13k. Any help would be appreciated. Thanks  Credit Cardsamexchaselowesamazoncare credit targetdiscovercredit onecapital onenfcu Personal loanavant credit

    iamkeithj wrote:
    Hey guys, Im really thinking about filing chapter 7. I currently owe 34k in credit cards and also have personal loan for 8k. I'm barely able to make payments and I really need some relief. It gets very stressful. Will filing bankruptcy help my situation. I just want to be able to start over. I have 10 credits cards and mostly all of them are maxed out with my nfcu with the highest balance of 13k. Any help would be appreciated. Thanks  Credit Cardsamexchaselowesamazoncare credit targetdiscovercredit onecapital onenfcu Personal loanavant creditGet on Excel: 1. Write down every signel debt you have and the minimum payments for each2. Write down how much you have of income coming in per month3. In a perfect world, you should have more income coming in vs debt (example: $3000/month from paychecks vs $2500 in bills/debt)4. If you have extra after paying all your bills/debt, put that towards the cards5. Try to find a part-time job to help you get extra cash In my opinion, i think is better to work two or three jobs for 1 to 2 years maybe 3 or 4 years and pay all that off or most of it, vs filing, which will stay in your credit for 10 yrs.  Do you live alone? Maybe you can find a roomate so you can pay lest rent and put the rest towards the cards?Craiglist has a lot of gigs for work doing anything, from delivering stuff to admin typing letters, helping people move on weekends, etcHave you thought about getting a loan to pay all that off? maybe asking your parents to co-sign to get a good rate I would do CH7 only if it's the very very last option.  Although it will clear you from debt, it will follow you/hunt you for a while. Good luck!!

  • Need an idea about performance ..

    I want to know as whether filtering more in a query increases performance of a query or decreases it ..
    Actually i executed a query which taken 5 mins around and so i did some filterings taking a point in a mind as filtering will not access whole table as just whichever are matching records, it will fetch that quickly but its opposite happened as now its taking around 7 mins..
    For increasing performance as i am aware i removed order by clause too as sorting takes more cost ..
    Now can anyone let me know just as whether writing more join statements it increases performance or decreases it ...
    Cost is decreased from 280103 to 36387 but still execution time is not improved and in fact it became more bad ..
    So any one help me .. Its any valuable links .. As i already did some searching but didnt find suitable one's ..
    Regards..

    180589 wrote:
    I want to know as whether filtering more in a query increases performance of a query or decreases it .. Cant say, it depends. It depends on the access plan. If you use WHERE clause and if oracle goes for a full table scan then the time is going to be the same.
    Actually i executed a query which taken 5 mins around and so i did some filterings taking a point in a mind as filtering will not access whole table as just whichever are matching records, Wrong Oracle need to go through each record to make sure its picking all the matching rows.
    Now can anyone let me know just as whether writing more join statements it increases performance or decreases it ... You join tables for a specific requirement. How can you compare a query with table joins and another without any joins. They are two different queries doing two different things.
    Cost is decreased from 280103 to 36387 but still execution time is not improved and in fact it became more bad .. You cannot compare the cost of two different query. Never do that.
    So any one help me .. Its any valuable links .. As i already did some searching but didnt find suitable one's .. Performance tuning must be handled as case in hand. We cant give generic suggestions. So i would suggest you read {message:id=9360003} and follow the instructions give there.

  • Need an idea about the opportunity

    Hi!
    I have a vast experience in Sales and Marketing over 20 years consisting of Logistics field from 2007. May age is now around 41. need to know if its advisable to take up SAP SD module to peruse my future career through it.

    SAP SD is a very running module.. There are lots of opportunity for SAP SD module.
    Maximum of organization need a SD consultant who is running SAP and whose company belongs to Sales and marketing..
    And your sales background will be added as your domain experience not in your relevant SAP experience. And yes, it will give very much advantage for your career..
    Regards
    Dev

  • Need Advice Fast About Lion Thumb Drive Please!

    Here's my situation, I've got several Macs that are on Snow Leopard that can upgrade to Lion but not Mountain Lion, I've been looking around for the Lion thumb drive, but can only find it on eBay, or some pirated version on Amazon.com.
    Here's the one I'm looking at http://www.ebay.co.uk/itm/140823936141
    Can anyone confirm that I can use this Lion thumb drive on as many Macs as I want? I can't really find it written definitively anywhere on the net that I can use it on a unlimited number of Macs. Thanks, please reply ASAP.

    You can make a USB thumb drive with the Recovery HD only on it and use it to boot into the Recovery HD to download/install Lion on the Macs you own or control. The Lion Recovery Disk Assistant is used to create this thumb drive. It does not have the full installer. You can install the assistant on any Mac that is running Lion.

  • Need some idea about evnt handler

    Hi
    I am developing an application, the GUI part is like yahoo messenger.
    So while execution,first the mainwindow appears, from that window1 appears, from window1 window2 appears.window2 has a textfield, that takes userinput(string) by textfield.getText() method.
    My requirement is: how can I use the inputted textfield string to be used as label of a button in mainwindow.
    I know the technique of returning the string from window2 to mainwindow,
    but don't know how to use eventhandler, sothat during runtime only the mainwindow will be updated with that button getting the string from textfield of window2

    Are you willing to pay for unemployed engineer to help you with this?

  • Create an image gallery in DW

    Hi all
    I am working on a new website in Dreamweaver.   I am happy to hand code the HTNL and CSS (using what shortcusts are availablel CSS with Designer etc).   As a fairly new subscriber to CC I have been using Lynda.com to the learn DW and found that DW no longer supports SPRY.   I NEED TO CREATE AN IMAGE GALLERY WITHIN THE NEW SITE, but now need to know which adobe product is best to use to create the gallery and embed the appropeiate HTML/CSS etc into the pages using DW???
    I appreciate your help here

    My favorite is Fancybox2....
    It handles anything!
    http://fancyapps.com/fancybox/

  • How do you build an image gallery in Flash CS3 actionscript3?

    I am building my entire website in flash cs3, actionscript3
    but I really need help building an image gallery. What I need is a
    horizontal scroll bar that contains thumbs within it and then loads
    the full size image right above the scroll bar. Anyone has any
    suggestions for books, tutorials or even safe places to purchase
    the fla that I can customize it?

    if you want help understanding as3 check:
    http://www.senocular.com/flash/tutorials/as3withflashcs3/
    if you want to purchase a custom fla that does exactly what
    you want send me an email via my website.

  • Urgent Help with Image Gallery

    Hi,
    I really need help with an image gallery i have created. Cannot think of a resolution
    So....I have a dynamic image gallery that pulls the pics into a movie clip and adds them to the container (slider)
    The issue i am having is that when i click on this i am essentially clicking on all the items collectively and i would like to be able to click on each image seperately...
    Please see code below
    var xml:XML;
    var images:Array = new Array();
    var totalImages:Number;
    var nbDisplayed:Number = 1;
    var imagesLoaded:int = 0;
    var slideTo:Number = 0;
    var imageWidth = 150;
    var titles:Array = new Array();
    var container_mc:MovieClip = new MovieClip();
    slider_mc.addChild(container_mc);
    container_mc.mask = slider_mc.mask_mc;
    function loadXML(file:String):void{
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest(file));
    xmlLoader.addEventListener(Event.COMPLETE, parseXML);
    function parseXML(e:Event):void{
    xml = new XML(e.target.data);
    totalImages = xml.children().length();
    loadImages();
    function loadImages():void{
    for(var i:int = 0; i<totalImages; i++){
      var loader:Loader = new Loader();
      loader.load(new URLRequest("images/"+String(xml.children()[i].@brand)));
      images.push(loader);
    //      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onProgress);
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
    function onComplete(e:Event):void{
    imagesLoaded++;
    if(imagesLoaded == totalImages){
      createImages();
    function createImages():void{
    for(var i:int = 0; i < images.length; i++){
      var bm:Bitmap = new Bitmap();
      bm = Bitmap(images[i].content);
      bm.smoothing = true;
      bm.x = i*170;
      container_mc.addChild(bm);
          var caption:textfile=new textfile();
          caption.x=i*170; // fix text positions (x,y) here
       caption.y=96;
          caption.tf.text=(xml.children()[i].@brandname)   
          container_mc.addChild(caption);

    yes, sorry i do wish to click on individual images but dont know how to code that
    as i mentioned i have 6 images that load into an array and then into a container and i think that maybe the problem is that i have the listener on the container so when i click on any image it gives the same results.
    what i would like is have code thats says
    if i click on image 1 then do this
    if i click on image 2 then do something different
    etc
    hope that makes sense
    thanks for you help!

  • CQ5 image gallery component

    Hi,
    I'm a newbee in CQ5. I need to create an image gallery similar to http://goo.gl/RGBXs. How can I proceed towards that?
    I was thinking of taking a DAM folder path from the content author as an input and using that I would create the block by iterating all the images contained within that folder. Is that a correct way? If so, what API I can use to iterate through the image files contained in a DAM folder?
    Any help or response is highly appretiated.
    Thanks.

    Hi Jason,
    Following is the code I used to display the image (bold letter) and it worked!!
    Simply use child.getPath() to get image path.
    <%   
        while(iterator.hasNext()) {
            Node child = iterator.nextNode();
    %>
        <div class="someClass">
            <a href="<%=child.getPath()%>">
                <img src="<%=child.getPath()%>">
            </a>
        </div>   
    <%  } %>
    and I used lightbox to show full image...and for that you need to have something like the following i.e. including necessary js libraries before the above code.
    Hope it helps you!!
    Thanks.

  • Need Ideas for Minimalist Website and Image Gallery

    I am looking for ideas for creating a minimalist online image gallery/portfolio? I want to either use html for the site and then flash for the portfolio images or some other method. I want to click on the thumbnails and then a large image will open.
    Should I use Flash, Dreamweaver, Would it be easier to load the images dynamically to a folder. Does anyone have an example they could show me. Thanks.

    I second Mahendra's suggestion for JAlbum Excellent product!  Just so you know, you don't need to use their image hosting.  Simply download the software and install it on your PC.   The beauty of JAlbum is that it generates thumbnails and HTML pages for you from your folder of images.  Lots of different Skins available. CSS can be customized.  And you can't beat the price. 
    Minimalism is nice but on the web, if you don't have some real text in the HTML markup you're essentially invisible to search engines, language translators and web assisting technologies like screen readers.  I realize this is a portfolio, but you want to maintain some degree of visibility so people can find you.  For this reason, Flash sites don't do well.  HTML is preferred.
    Good luck with your project,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • I need some idea for my last project about Java

    Hi my name is suzanna from Indonesia. I have lots of interest with Java programming and I want make something about it for my last project. It's very important and I need some idea...could u give me some topic? I'm sorry if my english is very bad.thx,bye

    Here's some popular ideas:
    image steganography, chat client/server, spyware, client/server file transfer, forum content management/enforcement, anything with reflection, anything with communicating with an external device such as camera or modem or robot, writing your own replacement for the java.util.Calendar class, anything with custom class loaders, splitting a string into a string[]
    And for an extra challenge:
    dominition-based repetition, implementing a JVM which represents 'null' values internally using some other integer value than 0

Maybe you are looking for

  • Error during releasing a TR

    Hi, I am facing a problem during releasing a request:: Calling the transport control program tp "tp EXPCHK WADK933459 pf=/usr/sap/trans/bin/TP_DOMAIN_WAD.PFL -Dtransdir=/usr/sap/tr" which checks the export requirements, returned the following informa

  • HT1218 ?My time machine could not complete back up.  Says backup disk image"/volumes/data/name's iMac.sparsebundle" could not be accessed error 1??

    Time Machine could not complete the backup. The backup disk image "/Volumes/Data/Name's iMacsparsebundle" could not be accessed (error -1 )

  • Image stabilization question...

    I have use the image stabilization in Motion and found it very good. I have also got AE CS3 (Windows) which does not have a good comparitive image stabilization. What 3rd party plug in should I buy for AE that would do a good job? (At the moment I am

  • IPad air syncing problem of video

    When sync the photo and video from PC to iPad air, the video only shows just a photo in the iPad air, can't play. But iPad 2 is no problem. iPad air was sync under ios7.0.4, the iPad 2 was sync under ios6.

  • Can't update to latest OS version

    I have a Blackberry Z10 developer edition and I want to update it to latest version (current version is 10.0.9.348), but I can't. When I try to update it using the phone it shows a message saying that the phone is updated. How can I update it? I can'