dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help resizing a link window from randam rotating graphics.

Hybrid View

  1. #1
    Join Date
    Mar 2013
    Posts
    13

    Help resizing a link window from randam rotating graphics.

    On our website I have random rotating graphics on our home page. As well as a link to a CEO message video we had made. When the CEO Message link is clicked a pop up message comes up stating that Quick Time Player is needed to view the video and that it can be downloaded from www.apple.com/quicktime/download. If OK is clicked the video opens in a new window sized 640 x 375.

    Here is the pop up window message code,


    </script>


    <script>
    function leaveCheck2(url) {

    if(confirm("Apple Quick Time Player is needed to view video. To download Quick Time Player visit www.apple.com/quicktime/download."))window.open("http://www.mywebsite.com/ceomessage.mov","mywindow","menubar=1,resizable=1,width=640,height=375")

    }

    </script>


    and this is the link,

    <a onclick="leaveCheck2(this.href); return false" href="ceomessage.mov">
    font color="#800000">Message from the CEO</font></a>



    I would like the same thing to happen when the ceo message graphic is clicked. Is that possible??

    Thanks!

    Here is the random rotating graphic code,

    var imagenumber = 2 ;
    var randomnumber = Math.random() ;
    var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
    var URLs = new Array() ;
    images = new Array

    images[1] = "images/indexpics/image1.jpg"
    images[2] = "images/indexpics/ceomessage.jpg"

    var image = images[rand1] ;
    var linknumber = 2 ;
    var img1 = Math.round( (linknumber-1) * randomnumber) + 1 ;
    links = new Array

    links[1] = "page1.htm"
    links[2] = "ceomessage.mov"

    var link = links[img1];
    document.write('<a href="' + link + '"><img src="' + image + '" border="0"></a>') ;

  2. #2
    Join Date
    Mar 2013
    Posts
    13
    Wow, really no help. Here I thought it would be something simple. I wish I knew more about this stuff.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles