Random Image with Clickable Link

Hey guys so far I found a code that lets me randomize an image and I found out a piece of code that makes the image clickable but I do not know how to add a specific link to each specific image.
Here is the code:
<head> <script language="JavaScript">
var theImages = new Array()
theImages[0] = 'Accounting Cartoon1.jpg'
theImages[1] = 'Accounting Cartoon2.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="link.html"><img src="'+theImages[whichImage]+'"></a>');}
//-->
</script>

anyone have an idea?

Similar Messages

  • Pdf-file with clickable links from iweb 09

    How can I create a pdf-file with clickable links from a website created in iweb 09?
    All iwork apps have an export button, which fulfills this task, but iweb does not.
    Any idea?

    I am running 10.5.6 on a MacBook Pro 2.53 GHz. I create my PDFs via the print dialogue. I tried to create a PDF from iweb with Hyperlinks activated and all links are dead. I tried to create the PDF from the Safari window, were all links are active, and – funny enough – sometimes all, sometimes half of my links are dead. But most of them do not work. As soon as I create PDFs from third party sites, everything works fine.

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • Scrolling news ticker embedded in a widget, with clickable links?

    Hi, a friend of mine has a widget and he wants to put a scrolling news ticker embedded in the widget, with clickable links, can it be done? He has it working
    in the web version. thanks.

    What you are trying to create is called a crawl, and you can create one by using the Roll/Crawl tool in the Titler workspace.
    To open the Titler, click the "T" on the lower right of the Monitor panel. The Roll/Crawl tool is located in the lower left of the Tasks panel in the Titler.
    You won't be able to create a huge, continuous crawl, but you can certainly use it to create the effect of a headline crawling right to left across the lower third of your screen.
    For more information on the basic tools in this program check out my free 8-part Basic Training tutorials on Premiere Elements support site Muvipix.com.
    http://forums.adobe.com/thread/537685?tstart=0
    And for step-by-step instructions for using the program and creating effects, like this scroll, you may want to pick up a copy of one of my books.

  • Some of my website images with embeded links only show the link with firefox, with IE8 the image appears correctly, why does this happen

    my website http://www.functionkey.net. If you view my homepage you will see that 3 of my images with embedded links only show up with the links. I am not using "_blank" in my code. The website was created using Microsoft Frontpage 2003.

    If you look at the page source then you will notice that there are some errors with (missing) closing tags.<br />
    Such errors shows as RED text.<br />
    You need to correct at least all codes marked as red text.
    The first &lt;a&gt; tag isn't closed here and you open a second &lt;a&gt;
    <pre>&lt;a target="_blank" border="0" href="http://www.win-rar.com"&gt;
    &lt;div align="left"&gt;
    &nbsp;&lt;/div&gt;
    &lt;div align="left"&gt;
    <u>&lt;a href="http://www.smartdraw.com"&gt;</u>
    &lt;img src="images/sd_logo.gif" width="256" height="111" border="1" alt="SmartDraw - The world's first Visual Processor (TM)" hspace="0"&gt;&lt;/a&gt;</pre>

  • Can you wrap an image with a link in an html email signature?

    When I cite a remotely hosted image in an html signature, and try to make that image a link, the link is ignored and the just the image is shown.
    e.g.:
    <a href="https://www.facebook.com/pages/Ubiquia/146019678805381" target="_blank">
    <img style=" position:absolute;
    height:30px;
    width:30px;
    left:172px;
    top:157.5px"
    src="http://png.findicons.com/files/icons/2779/simple_icons/48/facebook_48_black.png" alt="ubiquia facebook" moz-do-not-send="true"
    >
    </a>

    For each icon that you want to use in your email signature:
    locate icon on internet webpage - right-click on the icon and select 'Save Image as'. Save the icon to your computer in a suitable file.
    Then in Thunderbird
    insert > Image
    choose file - locate the saved icon on your computer
    click on Link tab and enter the www etc webpage link info
    click on OK to insert image with link.
    Codewise, where you have the actual icon you would need something stating where the icon is located:
    eg
    <a href="https://www.facebook.com/pages/Ubiquia/146019678805381" target="_blank">
    path to image saved on computer included in within <> </a>

  • In browser editing: Can my client add new images with hyper-links to their websites without having to replace images already there?

    My client would like to be able to add new images to their site themselves and use them as hyper-links to external sites without having to replace an old image with the new one (or blank place holding images - far from ideal). Is there ANY way that this is possible? They do not wish to update and add new images/links regularly and it is certanly not intended to be used as a blog or way of being able to constantly keep content new and fresh otherwise I would set them up with a blog account and add that to the site. It is merely a way of adding links to other local businesses every once in a while.
    Please see the page they wish to update... Friends. (Please excuse the layout... the customer will not be able to resize or edit the images themselves and wishes to add them as-is!)
    Thanks in advance for any help. If anybody knows how I can ask an Adobe official mod, that would be great... that, or make a request for a future addition in an update?
    Warm regards,
    Ben Gathercole

    Hi Andria,
    Changing links is currently not possible with in-browser editing.
    Please post this as a feature request in the following feedback form :
    http://feedback.inbrowserediting.com/?url=
    Regards,
    Akshay

  • Image with a Link to an URL

    Hi,
    I have an easy question. I would like to have a little question mark-image on my view. And this image has an link to an url. So I would like to push this image, and a new browser-window opens.
    I only found the Layout-element "LinkToUrl". But with this element I don't have an image.
    How does it works in Webdynpro? In HTML it is very easy...

    Hi,
    Change the layout to grid type and then scroll down. You will find "layout[GridLayout]" set col count here to the number equal to total number of buttons + 2.
    Then click on link and in the properties scroll down and set col span = 2.
    and hAlign = right.
    this will do the required.
    and the flowdata is coming in your container's properties because this container is also present in one of the transparent container which is having layout as flow layout.
    Regards,
    Sarbjeet.

  • Help needed making background image a clickable link

    Hi guys,
    I want to make the background of my site an advertising background where the background image is clickable.
    I've tried a few tutorials but none seem to be working
    What I've got is this as my CSS...
    #skin {position: absolute;
        width: 100%;
        height: 800px;
        margin-left: auto;
        margin-right: auto;
        top: 0px;
        left: 0px;
        z-index: -1;
        background-position: fixed;
    ...and this as my HTML...
    <div id="skin"><a href=""><img src="background.jpg" /></a></div>
    It kind of works but the link is only a thin strip either side of the screen for some reason and doesn't span the whole image background.
    Does anyone have any ideas as to where I'm going wrong?
    Thank you very much and hope to hear from you!
    SM

    Spindrift wrote:
    Basically, what I want to do is have an advertising skin as the background (can just be a dummy container div to act as the background) of my website, so that it fills the area outside my sites' container div and opens a link when clicked on.
    Does anyone know how I can do this?
    This can be done relatively easily but it's not very pretty. You will need to use a full-size image for the background, unless you plan to repeat it and set the clickable container to exactly that size. See code and screenshot below. Tested in FF, Chrome and IE9.
    <head>
    <style>
    body {
        width:100%;
        height:100%;
        margin:0;
    #background {
        background: #000 url(your-background-image.jpg) no-repeat 0 0;
        display: block;
        height: 1280px; /* change to your image height */
        position: fixed;
        width: 1920px; /* change to your image width */
    #wrapper {
        background-color: #FFFFFF;
        border: 1px solid #333333;
        left: 50%;
        margin-left: -480px; /* half the width */
        min-height: 500px;
        position: absolute;
        width: 960px; /* wrapper width - unclickable area */
    </style>
    </head>
    <body>
    <a href="" id="background"></a> <!-- This is your clickable background -->
        <div id="wrapper"> <!-- This is your non-clickable wrapper -->
            <header>
            </header>
            <main>
            </main>
            <footer>
            </footer>
        </div>
    </body>

  • I made a clickable image with download link on my FACEBOOK page, but its not working on Mozilla Firefox, while its working on other browser.. pls help!!

    im using Firefox 23.0.. i just used a simple HTML code on the download link.. but its not working on FIrefox..

    In what way is this button not working?
    Can you post the code that you use for this download button?
    Do you get this link if you right-click and choose "Inspect Element" to open the built-in inspector?
    *https://developer.mozilla.org/en/Tools/Page_Inspector

  • Image with url link

    hi..
    i have an image in my jframe and i want to link the image to an url address.
    can anyone help me with this?
    thanks

    Hi, Find the following code which can help you to invoke the browser. Put these code in the action performed method of your button.
    Process browserprocess = null;
    //browserPath represents the exe path of Internet Explorer
    String browserPath = "C:\\Program Files\\Plus!\\Microsoft Internet\\Iexplore.exe";
    String path = "c:/intellidocresources/demographics/path.PROPERTIES";
    String filePath = "www.google.com;
    String temp = browserPath + " " + filePath;
    browserprocess = Runtime.getRuntime().exec(temp);
    Bye.
    R.Vishnu Varadhan

  • Can I create a pdf with clickable links which open new pdfs?

    Hi,
    My client now wants me to create pdf with links to open new pdfs (in an offline mode). He wants to put all the content onto memory sticks to hand out at a conference.
    I have suggested the alternative of links which redirect to other pages within the same pdf, but if I could create one which open whole new pages or documents this would be really smart.
    Many thanks,
    Sam

    When you create the links, use "Go to a page view" type, as opposed to "Open a file". This allows you to create links that will open another PDF to a particular page and view (zoom and position).

  • Sliding images with clickable images

    I am making a video site for a film director which includes lots of his tv commercials.
    I am on a Mac and am building the site in Muse.
    I have made an image banner from lots of tiny images from his work that will run along the bottom of the page.
    I want the user to be able to click on an image to take them to a video page.
    I want the banner to move across the page when clicked (from right to left).
    Does anyone know how to do this? Should I use a gallery widget or perhaps anchors? Do I have to make it in Edge Animate first?
    Any help is greatly appreciated.
    thank you!
    Here is a sample of a similar banner (photo of page and a link to page below.)
    Also a screen grab from the site that I'm building.
    http://markus-altmann.de/seiten/br.php?id=MarkusAltmann_Handwerker_4077_1_1.jpg

    Thank you so much Sanjit!
    I’ll give it a go.
    Cheers
    Jill
    Jill McKay
    Freelance Director’s Assistant & Web Designer
    0400 177 952

  • Documents with clickable links

    I am trying to prepare a document on my Windows7 PC that contains a ton of hyperlinks.
    I do not have Word on my iPad, and I can easily create output formats (like pdf) on my PC that I can read on the iPad, but have been unable to find a format where the links are live when I open the document on the iPad.
    I've tried pdf, which doesn't seem to work.
    So, complex question (output format from Word, app on iPad, etc).  Need expert help!
    [yes, I know I can create bookmarks on the PC in Firefox or in Safari and sync them to the iPad, but the links are organized and have embedded text/commentary that I need to be linked with groups of links or individual links]

    Try the free app Kingsoft Office. You can edit word, excel and powerpoint files. You can also access your Dropbox files directly from the app.

  • Making a Datagrid with clickable links

    I'm trying to pull an XML list into a Flash file (got that
    part) and make each item in the resulting datagrid list a link to
    different PDF files (that's the part I DON'T have). I would think
    you'd build the url right into the XML, but I can't figure out how
    to use it to make the cells clickable. Any help would be much
    appreciated.

    Ok, I am about ready to pull my hair out on this (not a lot
    to spare, either!). Without giving me the code (I do want to figure
    this out for myself...mostly), can you answer the following:
    I can obviously figure out how to tie a mouse click event to
    the datagrid, but how do I tie the mouse click to a specific FIELD
    in the datagrid and grab the data in that field? If I can do that,
    I should able to then yank the data from that particular XML item
    by comparing the "clicked" cell value to the values listed in the
    XML file, and then throwing the url listed in that piece of XML to
    a getURL in Flash. But I just cannot for the life of me figure out
    how to tell which cell in the datagrid was clicked. Yikes!!
    Ok, in continued research, I DID figure out how to tell which
    cell is being clicked using ListEvent to tell me the rowIndex and
    columnIndex. Now, how do I pull the VALUE of that cell out??

Maybe you are looking for

  • Spinning ball cursor with FCP 6.0.1, OS 10.5, and Focusrite Saffire LE...

    Hi, I've had a problem now ever since I purchased and connected a Focusrite Saffire LE FW400 audio interface to my Intel MBP. I've had the same problem under both 10.4 and 10.5 with both iMovie '08 and FCP 6.0.1. In essence, whenever my FW400 audio i

  • HT1766 how to erase my device using itunes?

    how can i erase my iphone device that using itunes?

  • HP DL380p Gen8 processor kit elements

    Hello I'd like to add a second processor in a HP D380p Gen8 serveur. Somebody sent me a processor kit which contains only One fan. The user Guide explains that 2 fans are needed when adding a second processor. I'd like to know if the processor kit is

  • TCODE to find users Looged in the system

    Hi Friends, I want to see all the USERS logged into any of the SAP system. Thanks, Ster

  • Problems with style sheets

    I switched to Pages about one year ago because I then found that style management was easy and straightforward compared to Word. I updated to Pages V2.0 in January and since then I have been annoyed with the new way style sheets are managed. In V1.0,