How to randomly change an image upon refresh?

Hello, I just started my website and i was wondering if it is possible to randomly change an image upon reloading the page? I can't really find the answer anywhere and the widget confuses me.. anyone knows the answer to this one?

it can be done with javascript and cookie.
q: how are you with javascript?
http://www.cyclosaurus.com/iWeb2/Welcome.html
background will change when you refresh the page.

Similar Messages

  • How do I change the image used on an movie project icon? iMovie seems to select an image at random from the images I imported.

    How do I change the image used on an movie project icon?
    iMovie seems to select an image at random from the images I imported.

    Not sure I understand how to use what you have posted. Here's what my init() looks like:
    public void init()
    setLayout(new BorderLayout());
    p=new Panel();
    p.setLayout(new GridLayout(1,1));
    callnowButtonURL = getURL(callnowButtonFilename);
    if (callnowButtonURL != null)
    callIcon = new ImageIcon(callnowButtonURL,"call");
    endcallButtonURL = getURL(endcallButtonFilename);
    if (endcallButtonURL != null)
    endIcon = new ImageIcon(endcallButtonURL);
    b=new JButton(callIcon);
    b.setBorder(new EmptyBorder(0,0,0,0));
    b.setBorderPainted(false);
    b.addActionListener(this);
    p.add(b);
    add(p,"Center");
    Now the ActionListener is basically:
    public void actionPerformed(ActionEvent e)
    if (mybool == false)
    <Perform actions here set mybool to true>
    Change JButton b to use EndIcon
    else
    <Perform actions here set mybool to false>
    Change JButton b to use CallIcon
    Can you clarify how to perform the action I require? You can have a couple of Dukes if you can help me sort this out.

  • How do I change an image border color to another color - Dreamweaver CS5?

    Good day,
    I have just learned how to add a border to an image with Dreamweaver CS5 within the Properties Inspector.
    After typing the width in pixels in the Border Text Field and pressing the Enter key, Dreamweaver created a black border.
    How do I change the image border color to another color?

    I added your suggested rule to the Style Sheet "in any order" as you explained. See the image below.
    However this did not change the image border from black to light blue. In fact, nothing changed.
    Nothing changed because the CSS that has been written into DW is incorrectly written.
    You want the following (exactly as written below)
    img {border: 4px solid #0062C8;}
    You've inadvertently wrapped the rule inside a #main_image container rendering it meaningless.
    It's easiest to go into Code View and change
    #main_image {
         img {border: 4px solid #0062C8;
    to
    img { border: 4px solid #0062C8; }
    The Property Inspector added a border exactly as I wanted it, other than the color I wanted the border to be. What is the use of this function in Property Inspector if it can add a border within Property Inspector but not let me change the COLOR of the black border that Property Inspector added, to another color?
    That's a deceptively simple, yet valid, question with a long answer.
    Back in the dark old days of web design web designers were restricted to inline HTML formatting which offered  border properties but no colors.
    CSS styling offers colors and more but has to be written differently.
    These days. it's best to avoid HTML formatting. Unfortunately border="4px" in the PI still allows it. But does not permit color.
    Does anyone else out there ever add color borders to their IMAGES (not the containing box for the image) ?
    Yes, using CSS.

  • How do I change an image in muse composition news feature widget?

    how do I change an image in muse compostion news feature widget?

    There are multiple ways to do that.
    You can either use File > Place to place an image on the page somewhere and then drag the image inside the widget target container.
    Or you can go to Assets panel, go to the image you want to change, right (or command) click on it and choose Relink. Then navigate to the new image and select it to replace the current image.
    Hope this helps.
    Cheers,
    Vikas

  • How do I change the image selected for the finalized movies pane in all events?

    How do I change the image selected for the finalized movies pane in all events? I made a movie some time ago in iMovie, and a still from this now appears as the image for Finalized Movies in the All Events pane (as well as showing up if I then click on this pane to take me to Finalized Movies). Anyone know how to change or delete this image, please?

    Unfortunately, the suggested solution in that thread does not work and the thread appears to be closed to replies.  That is, even though I am logged in the Reply|Quote|Mark as answer|Report as abuse items are missing.
    The suggested solution is:
    First, I found I had "img100.png" in  C:\Windows\Web\Screen  and
    C:\Windows\WinSxS\x86_microsoft-windows-themeui-client_31bf3856ad364e35_6.2.9200.16384_none_69ee3fa2269e545e
    1. Belonging to the Administrators Group, I replaced file Owner TrustedInstaller with my Username on both "img100.png" files
    2. After resizing the image I wanted to see on the Login screen to the resolution of "img100.png" file,
    I copied and pasted it to both "img100.png" files keeping this way the format (extension) and resolution of the original "img100.png" file,
    which I permanently deleted.
    However, I have not been able to replace the img100.pgn in C:\Windows\Web\Screen even after taking ownership of it and setting the permissions for my userid to All.  I edit it with mspaint and then try to save it. The save starts that then says the
    save was interrupted.
    The appears to be some additional protection besides the standard acls.
    http://www.saberman.com

  • How do I change the image title when it is uploaded from iphoto to iweb. At the moment the image title is /shapeimage_1.png and I would like to put in something more relevant than just shapeimage?

    How do I change the image title when it is uploaded from iphoto to iweb. At the moment the image title is /shapeimage_2.png and I would like to put in something more relevant than just shapeimage_2?

    When you drag images from iPhoto to iWeb, iWeb retains the original filename.
    When you use a mask, iWeb creates a png file with the shapeimage name.
    So do not use a mask and crop your images before dropping them on the iWeb canvas.
    When you use an irregularly shaped mask, then png files are created. They have to be png because of the transparency of the shape.
    You can use a 3rd party application to create the png images yourself, and give them a proper name.
    Or use the published png files, rename them and drop them back onto the iWeb canvas, while first removing the previous images.

  • When you drag a link onto your desktop, how do you change the image for the shortcut?

    When you drag a link onto your desktop, how do you change the image for the shortcut?

    Select it, hit command-i (or choose File -> Get Info), select the icon in the info window and paste something else there.

  • How can i change the image in portal logon screen

    hi guys
    pls tel me
    how can i change the image in portal logon screen
    thanks
    regards
    kamal

    Hi
    Download the par file com.sap.portal.runtime.logon.par.bak from
    Go to System Administration -- Support -- Portal Runtime -- Browse Deployment.
    The path should ROOT/WEB-INF/deployment/pcd. Now download that file into local system.
    Create a Par project and make necessary chenages ..i.e
    Open the downloaded par file with WinZip and inside the lib folder three jar files named com.sap.
    portal.runtime.logon_api.jar, com.sap.portal.runtime.logon_core.jar and umelogonbase.jar will be there. Copy those files in the folder u2018libu2019 in par project.
    Now change a branding Image...i.e
    Replace the branding-image. jpg with your company branding image in the same name.
    Once modifications are done,then create a par project and upload the par file into portal.
    Go to the path System Administration -- Support -- Support Desk -- Portal Runtime -- Administration console.
    then browse the file and click on upload.
    Connect to server where the Portal WebAS is running and go to:
    (drive):\usr\sap\<system id>\<system instance>\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout.
    There you will find the images used on logon screen, you can replace them for your
    company images, please take care with the width of the images, as usual, to make this
    change effective, you must restart the whole WebAS.
    Regards,
    Raju

  • How Do I Change The Image Used For The Power Up Screen?

    Windows 8.1 Pro with all patches.
    How do I change the image that is shown when you power up a PC?
    Note: This is not the Start Screen background or the Lock Screen background or the Desk Top background.
    http://www.saberman.com

    Unfortunately, the suggested solution in that thread does not work and the thread appears to be closed to replies.  That is, even though I am logged in the Reply|Quote|Mark as answer|Report as abuse items are missing.
    The suggested solution is:
    First, I found I had "img100.png" in  C:\Windows\Web\Screen  and
    C:\Windows\WinSxS\x86_microsoft-windows-themeui-client_31bf3856ad364e35_6.2.9200.16384_none_69ee3fa2269e545e
    1. Belonging to the Administrators Group, I replaced file Owner TrustedInstaller with my Username on both "img100.png" files
    2. After resizing the image I wanted to see on the Login screen to the resolution of "img100.png" file,
    I copied and pasted it to both "img100.png" files keeping this way the format (extension) and resolution of the original "img100.png" file,
    which I permanently deleted.
    However, I have not been able to replace the img100.pgn in C:\Windows\Web\Screen even after taking ownership of it and setting the permissions for my userid to All.  I edit it with mspaint and then try to save it. The save starts that then says the
    save was interrupted.
    The appears to be some additional protection besides the standard acls.
    http://www.saberman.com

  • How can i change the image just above password entry on login window

    I recently discovered that the image on my login window, right above where I type my password, has changed. It used to be the photo the computer took of me when I first set up my MacBook Pro. Now for some reason, the image has changed to a baseball! How do I change this?

    It's something you set up when you made your user profile. You selected the OS version to be displayed in your profile. It's what we see in your original topic post:
    MacBook Pro, Mac OS X (10.5.8)
    I don't know if you see that yourself of if see mine, for example.

  • How do I change the image resolution of a photo?

    Hi..,
         I am the beginner in Photoshop.
         I want to change one image resolution from 72 dpi to 300 dpi.
         So, I search and got one pdf for change the resolution of the image. In that they mention, take the "Printscreen" of the image and paste in the photoshop and change the mode(Index - flatten) and change resolution via the "Image -> image size -> Resolution".
         Like that i did, it changed correctly.
         After that I Open one already saved image file in Photoshop and do that same steps but the resolution was not changed.
    So, now how to change that saved image resolution to 300 dpi...??
    Regards.,
    VISWA

    Viswa,
    To find the current resolution of your image, follow these steps:
    With your image open in Photoshop, Image > Image Size (Like you've already done earlier).
    Check the resolution as shown above. If it doesn't show 300, enter 300, hit OK and 'Save' your image.
    Open the file and check again. If it still shows 72, post back with more details of the type of file you're trying to open in Photoshop and if possible, a screenshot so we can help.
    -ST

  • How do I change an image to Spot color?

    I've linked to an image of our logo in a document, but the file needs to be in two color spot before I print. How do I change our logo from a CMYK file to a SPOT one?

    You cannot change the color of the linked logo in ID. You'll need to open the logo in the appropriate editor and make a new spot color version, then link that.

  • How do you change the image in a JPanel?

    Hey! (firstly, i need to use image on a JPanel, label&icon not an option).
    I've made my JPanel class
        public class DrawingPanel extends JPanel {
            Image img;
            DrawingPanel() {
                Image img = Toolkit.getDefaultToolkit().getImage("13.jpg"); //default image at startup
            public void paintComponent (Graphics g) {
                super.paintComponent (g);
                // Use the image width & height to find the starting point
                int imgX = getSize ().width/2 - img.getWidth (this);
                int imgY = getSize ().height/2 - img.getHeight (this);
                //Draw image centered in the middle of the panel   
                g.drawImage (img, 0, 0, this);
            } // paintComponent
        } // DrawingPanelAnd I've made my instance of it and added it to the Frame:
        DrawingPanel imagePanel = new DrawingPanel();Now, I need to change the image on the JPanel according to the user's input. I have the string of the location of the new image. How do I update the JPanel to display this new image? Any help greatly appreciated!!

    Well... You could just add a method in your class which sets the image according to the new image name you provided. Something like this:
        public class DrawingPanel extends JPanel {
            Image img;
            DrawingPanel() {
                img = Toolkit.getDefaultToolkit().getImage("13.jpg"); //default image at startup
            public void setImage(String imageName) {
                    img = Toolkit.getDefaultToolkit().getImage(imageName); //Loading the desired image
            public void paintComponent (Graphics g) {
                super.paintComponent (g);
                // Use the image width & height to find the starting point
                int imgX = getSize ().width/2 - img.getWidth (this);
                int imgY = getSize ().height/2 - img.getHeight (this);
                //Draw image centered in the middle of the panel   
                g.drawImage (img, 0, 0, this);
            } // paintComponent
        } // DrawingPanel

  • How can I change the images for af:statusIndicator?

    The default icons (busy and not busy) have a deep blue background which is different from our chosen background color for the application.
    As per the ADF documentation for Web development Section 16.6:
    "... you can use skins to change the actual image files used in the component."
    Is there any code example on how to change the image file for af:statusIndicator?

    Hi,
    You can check [this post|http://forums.oracle.com/forums/thread.jspa?threadID=615673] for some samples.
    -Arun

  • How do I change the image size by pixels

    In the older version of photoshop you could change the image size and change it by pixels independently. With photoshopcc if I change the width the height changes. How do you change the 2 values independently to get the desired size?

    You'll want to use the Camera icon to upload your screenshot images when you reply.
    But jml007 has the answer I think you want. Change the units from inches to pixels and click on the chain link to turn it off and enter your W H values independently.
    Mark his answer as correct if this solves your issue.
    Gene

Maybe you are looking for

  • How can i get my youtube to work without it stopping in the middle of video's?

    Whenever I am viewing a video on youtube, it will stop playing at random points and if I click the play button it won't work. This doesn't happen 24/7 but I really want to get it sorted. I have tried re-booting but that doesn't seem to work. Please h

  • Sap AII auto id infrastructure - BW Extraction with 0AI_1 Datasource

    Hi Gurus, We are working with Sap AII "auto id infrastructure" and BI Nw2004s Sp12. We have problems with the standard datasource 0AI_1. We have find the problem in the source of the function "/AIN/BW_FILL_IT_0AII_TRAN" in the standard program "/AIN/

  • Can't start Help in PS CS5

    When I click on the Photoshop Help menu item, I get an Adobe Air error dialog with the text 'This installation of the application is damaged.  Try re-installing or contacting the publisher for assistance.' I've reinstalled but it didn't help. The con

  • Auction status error

    Hi everyone, We have an issue with the status of an auction. The status is not automatically updated. For example, we create an auction which starts at 10am and finishes at 12pm. Before 10am, the status is "Published" and continues with that status e

  • Undo tablespace/redo logs/ DML /DDL/ truncate/ delete

    1st scenario:Delete 10 rows in a table Delete 5 rows 5 rows in the table savepoint sp1 Delete 3 rows 2 rows in the table rollback to savepoint sp1 5 rows in the table So all DML affected values are noted in the undotablespace and present in the undot