Random images - but retuned in the same order...

Hi all,
I dont post here often, but Im a tad stuck and need some
help.
I have this code:
<%
If (Recordset1RE.Fields.Item("qRE").Value) <= 7 And
(Recordset1RE.Fields.Item("qRE").Value) >= 4 then
RANDOMIZE
Response.write("<IMG SRC='randompicture" &
INT((12)*RND()) &
".gif'>")
Else
response.write ""
End if
%>
... which returns a random set of icons in a repeat region.
That bit is
fine.
There are a number of icons dotted around on a grid, that
change location
depending on the value in the database.
What I need to be able to do is return the random icons in
the same order
for each repeat region on the page.
Anyone know how to do that?
Any help would be greatly appreciated.
~L

Write each image into a variable after the randomization.
Place them on the
page using the variables....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Lindsay Kuzu" <[email protected]> wrote in
message
news:fi487s$s5m$[email protected]..
> Hi all,
>
> I dont post here often, but Im a tad stuck and need some
help.
>
> I have this code:
>
> <%
> If (Recordset1RE.Fields.Item("qRE").Value) <= 7 And
> (Recordset1RE.Fields.Item("qRE").Value) >= 4 then
> RANDOMIZE
> Response.write("<IMG SRC='randompicture" &
INT((12)*RND()) &
> ".gif'>")
> Else
> response.write ""
> End if
> %>
>
> ... which returns a random set of icons in a repeat
region. That bit is
> fine.
> There are a number of icons dotted around on a grid,
that change location
> depending on the value in the database.
> What I need to be able to do is return the random icons
in the same order
> for each repeat region on the page.
>
> Anyone know how to do that?
>
> Any help would be greatly appreciated.
> ~L
>

Similar Messages

  • Query database fields are the same character but not in the same order

    Hello Oracle WIZ !
    I have a simple question regarding perhaps a function.
    I have a columns in a database with data the could have been transpose meaning the keyer might have entered. 1234 and someone else could have come in and put 2134.
    the characters are the same but the numbers are in a different order. Is there any function that would allow me to query just based on characters? hence bringing back the 1234 and 2134 rows?
    Hope this makes sense
    Thanks
    all

    Hi,
    You can use CONNECT BY to re-arrange the characters in a string in ascending order, then use that value to compare strings.
    For example, in the following sample data:
    CREATE TABLE     table_x
    AS
    SELECT     1 AS id,     '1234' AS txt     FROM dual     UNION ALL
    SELECT     2,          '4231'          FROM dual     UNION ALL
    SELECT     3,          '433'          FROM dual     UNION ALL
    SELECT     4,          '343'          FROM dual     UNION ALL
    SELECT     5,          '431'          FROM dual     UNION ALL
    SELECT     9,          NULL          FROM dual
    ;ids 1 and 2 both have txt consisting of '1', '2', '3' and '4'.
    ids 4 and 5 both have txt consisting of '3', '3' and '4'.
    There are no other matches.
    This query finds those pairs:
    WITH     cntr     AS
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL <= ( SELECT  MAX (LENGTH (txt))
                           FROM        table_x
    ,     got_ordered_txt     AS
         SELECT     x.id
         ,     x.txt
         ,     MIN (SYS_CONNECT_BY_PATH (SUBSTR (x.txt, c.n, 1), ','))     AS ordered_txt
         FROM     table_x     x
         JOIN     cntr     c     ON     c.n     <= LENGTH (x.txt)
         WHERE     LEVEL     = LENGTH (x.txt)
         CONNECT BY NOCYCLE     x.id     = PRIOR x.id
              AND          c.n     != PRIOR c.n
         GROUP BY     x.id
         ,          x.txt
    SELECT     a.id
    ,     a.txt
    ,     b.txt
    ,     b.id
    FROM     got_ordered_txt     a
    JOIN     got_ordered_txt     b     ON     a.id          < b.id
                        AND     a.ordered_txt     = b.ordered_txt
    ;Output:
    .       ID TXT  TXT          ID                                                
             3 433  343           4                                                
             1 1234 4231          2                                                

  • In Photoshop V5 -How do I keep photos in the same order when Exporting a Collection to a Folder

    Hi
    In order to resize photos ready for Premiere Elements, I am Exporting my Collection to a folder, from the Organiser.
    I then resize that Folder using Process multiple Files.
    I then can import that Folder into PE.
    BUT, the export seems to change the photo order to an apparent random order.
    The Collection is in the right order, and there seems no options in the export dialogue to impact the order in the exported file.
    Thanks
    Chris
    PS I am about to upgrade to version 7, but would like to get my process sorted out before then. maybe 7 does it differently.

    Hi DJ
    Thanks for the quick reply.
    The good news is that what you suggest simplifies my process a lot. So thanks for that.
    The bad news in the order in still wrong. I.E it's not as the collection order, but it is the same order as the Process Multiple file route!
    So a step forward, but not quite there yet.
    Thanks so far!
    Chris

  • Gray scale photos images are different but should be the same; help?

    I send a gray scale image from Lightroom (Edit with ...) and it opened CS4 photoshop.
    I made a blank document , 11x14".
    I used Windows/arrange/ tile to view the blank and the gray scale image. I tired various methods of bringing the gray scale image to the blank one (move tool, select all and move, copy and paste). Each time, I did this within seconds of each other (I made no changes to fill, opacity, and I used Normal). I brought the image in twice so I could print out the SAME image twice on the larger 11x14 at Sams club in order to use the Epson 7800 printer and not the old wet process on the Fugi machine. One image is darker(lighter) than the other every time. I even tried another image and I got two different exposures.
    I wonder if it it only happens with the grayscale images? Perhaps it is a problem coming from Lightroom 2.5?
    I did a three image 16x20 and I didn't notice the difference - partly because they were three differenct images in color. I will try two color images from the same file tomorrow.
    Any thoughts? I haven't found a possible setting problem that would have been applied between the operations.
    Rich

    Paulo,
    Thanks. I was ready to believe the monitor idea but I still have some reservations.
    I don't doubt what you said about the pixels (sounds correct to me).
    Why?
    I tried another monitor and the images I attached also look like the top one is darker (vertically).
    Also, the same is true if I scrolled the images. It seems to me that I should see a difference as I slowly scroll the image vertically. I didn't see a difference.
    Read on please.
    At any rate (I long for a CRT - my 21" crapped out last year), I am using  two SAMSUNG screens, the
    one attached to the main computer is the Syncmaster T220 - a well rated
    monitor; as far as I knew , read and had friends who recommended them.
    The other I just tried is attached to the second computer a couple of feet away. It is the syncMaster T240HD. 
    So, if it is an LCD monitor problem, it is with both and the same
    company. I would think I would have read some bad reports about these
    LCDs?
    Also, wouldn't the color images also be different when presented the same way? (they aren't).
    However, I went back to the original T220 LCD display and moved an image in to a blank one as before, then did the control J to copy the layer, and the images we different again. But, I zoomed in more than usual and scrolled the images and they were lighter at the bottom of the screen and darker at the top of the screen!!!!!!
    That is good news and bad news! $$$$$$
    If it is the monitor problem, then both images should print as the same.????
    Secondly, the display (LCD) attached to the machine at Sams showed the same difference between the two images. AND, I recall that the display is also a Samsung (I will check that tomorrow).
    What a bunch of coincidences! I guess I have to search the web for some Samsung answers? and contact the company?
    I want to explore as much on my end as possible.
    Hunt and another suggested the Control-J to avoid the problem by copying the layer. That didn't work either.
    I suppose I could tweak one of the images after bringing them in but I don't know how (I clicked the layer and I wasn't able to do anything - like lighten that image).
    Again, thanks for the help. I think the question maybe answered.
    I will send the screen capture shortly.
    Rich

  • How to export an album and keep images in the same order in elements 11 mac

    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos

    Thanks for the tip, Michel
    It worked like a charm…
    cheers Jos
    Op 28 okt. 2013, om 18:49 heeft MichelBParis <[email protected]> het volgende geschreven:
    Re: How to export an album and keep images in the same order in elements 11 mac
    created by MichelBParis in Photoshop Elements - View the full discussion
    JosU a écrit:
    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos
    The order in album is only kept in the organizer database, so the only way not to lose that order is to rename files.
    If you are using the 'export' function, select your album in custom order, select all photos and in the dialog, choose to rename with a common base name.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5794538#5794538
    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/5794538#5794538
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5794538#5794538. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • After upgrading to 5.01, songs in my playlist no longer are in the same order as on itunes.  I want to at least list them by the most played first not some random Apple order.

    After upgrading to 5.01, songs in my playlist is no longer are in the same order as on itunes.  I want to at least list them by the most played first not some random Apple order.

    Not sure why this is happening and it is a pain. Once the Purchased list sorted by 'date added' go to the left most column and select the top - in my Purchased list the new items go to the bottom and I drag them back up to the top position.
    MJ

  • Does not display photos in the same order they appear on my PC

    I have photos on my Windows PC running iTunes.
    I can successfully get AppleTV to display the photos on my HDTV, but they are not always in the same order as they appear in my PC photos folder.
    And I am not displaying the photos 'randomly'.

    Spare yourself the frustration, use 3rd party apps like Photo Manager Pro. You can drag your photos around.
    https://itunes.apple.com/sg/app/photo-manager-pro/id393858562?mt=8

  • New Shuffle always shuffle the same songs in the same order

    Just bought a shuffle for Marathon training. Loaded about 150 songs on it (about 1/2 full). I go on 1-3 hours runs. It might be my imagination but the shuffle sequence doesn't seem very random. I seem to hear the same songs in the same order each time.
    It's kind of like in Itunes when you hit shuffle on a playlist it mixes the playlist up but until you turn shuffle off and back on, the order doesn't change them again.
    Is all the running cooking my brain or has anyone else noticed this with the shuffle?
    Sg

    Make sure the play order switch on top is set to shuffle (the pincers with arrows), not play in order (oval arrows).

  • Same material can exist on multiple line items for the same order.

    Hi
    Is there any specific customising setting or web shop setting through which we can restrict user to add same material on multiple line items for the same order ?
    Regards

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

  • How can I get keys from Hashtable in the same order?

    Hello, everyone.
    I have a Hashtable containing key-value pairs, I need to get the keys in the same order as I use
    method put(key,value) to save the key-value pairs. But I can only find Hashtable.keys() to fetch the keys in form of Enumeration and when retrieve the keys from the Enumeration,they are not in the original order!
    The following is my code:
    Hashtable ht = new Hashtable();
    ht.put("Name","Harry Bott");
    ht.put("Gender","Male");
    ht.put("Age","25");
    String[] Items = new String[ht.size()];
    Enumeration e = ht.keys();
    int i = 0;
    while(e.hasMoreElements()) {
    Items[i++] =(String)(e.nextElement());
    The Items contains the keys but they are not in the original order.
    Does anyone know how to get the keys from a Hashtable in the same order when they're put?
    Thank you!

    yeah, another solution is to stored keys on a Collection at the same time you put them on the HashMap with its values.
    Then when ur going to retrieve objects from the Map u iterate the Collection that has the ordered keys and use them.

  • Itunes 10 imports cd tracks in alphabetical order only.  What setting do I change so it imports the same order as the cd?

    itunes 10 imports cd tracks in alphabetical order only.  What setting can I change so that it will import cd tracks in the same order as on the cd?  Any help would be appreciated!  I have this issue on only 1 of my 2 macbook pro computers, so I'm guessing it is a setting issue--but I don't know where to find it.

    The apparent order of a burned CD may depend upon how you have iTunes display it - https://discussions.apple.com/message/17827921

  • Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel

    Hi,
    We are trying to load several Excel files into SQL Server SSIS and we need to save the data in the database in the same order as it is in Excel..
    My question is, Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel. If so, we will add a sequence to ensure we have the order.
    Please advise.
    Thanks & Regards,
    Dhanumjay

    Thanks for your response.
    If it is one file then we can add an index column, but we have to load hundreds of files.
    How adding an index/key column to the table works unless SSIS picks and loads the data in the table in the same order as it is in Excel?
    Just to explain my question better,
    If excel has three rows  {a,b},{c,d},{e,f}, does SSIS ensure it loads the data in the same order in a table.
    Thanks.

  • Is it possible to import photos from a disk and retain the same order?

    Is i possible to import photos from a disk and retain the same order they appear on the disk?  When I import them, the come out in random order.

    When first imported the photos will be sorted in the Event chronologically. On the disk they well be sorted by the Finder and that's usually alphanumerically by file name. So select the photos in the event and type Commnad+N.  That will create a new album at the left with the photos in it. Then go to the View ➙ Sort Photo menu and select "By Title".  That should give you the same order as you view the photos on the disk via the Finder.
    OT

  • In IPhoto 11 I have made an album and rearrange the photos in the order I require them. When export the album to allow me to burn them to disk to be viewed in Windows they do not maintain the same order. What am I doing wrong?

    In IPhoto 11 I have made an album and rearrange the photosin the order I require them. When export the album to allow me to burn them todisk to be viewed in Windows they do not maintain the same order. What am I doingwrong?

    When you sort the Album in iphoto are you sorting manually? Or by date of the photos?
    When you sort in the Finder how are are you sorting?
    Here's one way to do what you're trying to do:
    Create your Album and sort the pics as you want them. Then Photos Menu: Batch Change -> Set Title to Text "John's Birthday", for instance, and tick the box to append a number to each Photo. Now your photos are titled 'John's Birthday 001, John's Birthday 002 ... etc'
    Then File -> Export and in the Export dialogue set the Filename to "Use Title"
    Sort on Filename in the Finder and you end up with a folder full of images in the same order as the Album in iPhoto.
    Regards
    TD

  • HT4236 when i transfer photos to pc they are not in the same order - how do i get them in order

    Down loading photos to Ipad4 does not place them in the same order as in my PC
    If i rename photos eg: 1,2,3,4,5, ect it still does not transfer them in order - could some one help please

    I BELIEVE it orders them in date taken order, not name order.
    You can look for a third party app that will allow you to choose/alter the sort order, or use a program to edit the properties of the photos to give them all the same date, which will then allow the iPad to default to name order. I found a free program that'll do that, but you may want to preserve the original dates on your photos so the other photos app might be yoru best bet. I'm not familiar with any but perhaps someone can recommend one to you.

Maybe you are looking for

  • Update video in cs6 playback

    I have cs6 cloud, premiere 6.03.  Three cameras, video clips about 50 mins. Using CS5, muilticamera works fine in all respects.  When open the project in CS6 and play it, the video often freezes, unfreezes, freezes, etc. If is very difficult to creat

  • Azure Pack Windows Service Bus 1.1 wont start on Windows 8.1

    Hi I am installing Azure Pack Windows Service Bus 1.1 on my Windows 8.1 (I have tried with 4 more computers) and everyone keep getting the same error. After the configuration when the Service Bus Gateway tries to start up it gets stuck in starting mo

  • So where can I get, if not design, themes for my 5...

    I'd really like to be able to customize to the fullest. I like the built in Nokia theme, but it's just TOO default for me,a nd besides, EVERYONE has it! Thanks, in advance!

  • TDMS4HCM: Struggling at step "confirm definitions"

    Hi all I'm trying to implement TDMS4HCM. All the systems have the same patch level, the recommended sap-notes have been implemented. The selected TDMS template is "ERP Initial Package for HCM Personnel Development (PD & PA)" I'm struggling at the poi

  • Combining classes into one single class

    Hi I have written a java application that incompasses many classes. When I complie my java code the complier produced a ClassName.class file for the main class and each and every class. When I run the application it needs all of the classes not just