Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Location
    USA/NY
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Opening "fullscreenmode" with an image link

    Hi,
    Very new at this..appreciate any help..."baby talk" welcomed (like where things need to go...head?body?)

    I love the "regular full screen script" but I'd like to open it with an image link. I've pasted the whole code so that people will know what I'm talking about...I believe all I need to manipulate is the "button" portion
    <form>
    <input type="button" onClick="winopen()" value="Open window">
    </form>


    Posted so people will know what script I mean:
    <script>
    <!--
    /*Full screen window opener script: Written by JavaScript Kit (www.javascriptkit.com) More free scripts here*/
    function winopen(){
    var targeturl="../index.html"
    newwin=window.open("","","scrollbars")
    if (document.all){
    newwin.moveTo(0,0)
    newwin.resizeTo(screen.width,screen.height)
    }
    newwin.location=targeturl
    }
    //-->
    </script>
    <form>
    <input type="button" onClick="winopen()" value="Open window">
    </form>

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Yes you do have to play with the button portion. Here goes:
    <a href="javascript:" onClick="winopen();"><img src="someimage.jpg" border="0"></a>

  • #3
    New to the CF scene
    Join Date
    Oct 2003
    Location
    USA/NY
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Hi Marek ,

    I can't tell you how long I played about with that script...I tried to compare script from "code generators" for button vs image...they all seemed to leave out the "on click" portion in their script (the generators were for pop up windows)

    ex: <a href="javascript:"winopen()"><imgscr=myimage.gif"></a>

    This didn't work for this script but it seemed to work with others...

    Is there a rule of thumb to sort this out? Or is it just from experience that you knew?

    Just curious...

    Thanks again
    Lara


  •  

    Posting Permissions

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