...

View Full Version : show image in new window



hooman
06-30-2004, 07:57 AM
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 :confused:

glenngv
06-30-2004, 08:10 AM
Do you mean you want to insert the image in the new window and not overwrite the content?

jamescover
06-30-2004, 09:00 AM
<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

hooman
06-30-2004, 11:37 AM
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 .

trib4lmaniac
06-30-2004, 12:31 PM
Do you mean something similair to this (http://www.barrettuk.com/uli/index.php)?

hooman
07-03-2004, 11:02 AM
Please help me about my problem. :confused:

Willy Duitt
07-03-2004, 03:46 PM
Please help me about my problem. :confused:

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum