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 7 of 7
  1. #1
    New Coder
    Join Date
    May 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    show image in new window

    hellow friends!
    I have a iframe and i send content of ifarme to new window as fullpage with this code:

    <script>
    function fullpage(){
    var url=top.frames['I1'].location.href;
    window.open(url);
    }
    </script>


    Now I want to show a image in this window when i open window.I use from this code:

    var mywin=window.open(url);
    mywin.document.write("<center><img src='images/box/right_cen.jpg'")

    But i don't know merge this code with top code

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Do you mean you want to insert the image in the new window and not overwrite the content?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <script>
    function fullpage(){
    var url=top.frames['I1'].location.href;
    window.open(url);
    }
    </script>



    What is the URL? Where is the event handler? If it's an HTML page, why can't you just embed the image in the new page, instead of writing to it, which will 'erase' all other content ?


    -james
    "God so loved the world that he gave his only begotten son, so that whosoever believed in him would not perish, but have everlasting life. For God did not send his son into the world to condemn the world, but so that through him the world might be saved. "

  • #4
    New Coder
    Join Date
    May 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use this link for show contents of I1(IFrame) in a window:

    <a href="javascript:void(0)" onclick="fullpage();"> <img src="images/full_screen.jpg" border="0"></a>


    but i want to show an image in top of the window .

  • #5
    Regular Coder trib4lmaniac's Avatar
    Join Date
    Feb 2004
    Location
    Cornwall, UK
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean something similair to this?

  • #6
    New Coder
    Join Date
    May 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Please Help me!!!!!

    Please help me about my problem.

  • #7
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by hooman
    Please help me about my problem.
    You have had three people requesting that you clarify what exactly it is you are trying to do and you have failed to address any of their questions.

    Noone here is a mind reader and the answer to those questions are needed in order to further help you. Therefore, you can help yourself by answering the questions.....

    .....Willy


  •  

    Posting Permissions

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