PDA

View Full Version : Are you up for the challenge?


Waldo
30-09-2000, 00:16
Well, fixing my problems isn't much of a challenge! Anyway, I'll get straight to the point and explain what I want to do!
OK, at present I am using Dreamweaver to design a new page. THIS IS WHAT I WANT TO HAPPEN :
I have a file news.htm on which I want 4 links to files 01.htm to 04.htm. When someone clicks on them I want them to open in a new window. So far, so easy. However, I want the new browser window to be a set size (480x320) and with no toolbars, no resize option, no nothing basically. I went into Behaviours in Dreamweaver (after I had created the link) and selected the the New Browser Window Option. This all went well. I changed MouseOver (gets VERY confusing) to MouseClick and I thought that would be that. However, now when someone clicks on the link 01.htm opens in the new window AND in the Parent window (news.htm). Does anyone know a way around this using Dreamweaver? Or can someone provide the necessary JavaScript?
If you do that I will be mildly impressed. HOWEVER, if you manage to provide the code for this I will worship you (probably only for about five minutes mind! :E)
What I really want is for one page to open up (same as above 480x320, etc) say for example the file 01.htm. Then if someone clicks on the link for 02.htm then the 01 stuff would be replaced by the 02, and so on. I know this is possible because other websites use this (for example, at Jungle.Com when you click on one product a popup window opens giving you details. When you click on another product, the same window is used but the old stuff is replaced).
My praises await.
;)

Cheers,
Waldo

PS- Just in case you check this page Greap, the code you gave me didn't work or I fecked up something, the latter being far more likely ;)

Bad Boy
30-09-2000, 01:07
There are 2 ways in which this can be done, either use my script (mail me then I can send all info you need, JavaScript) or Java. Theres a differance between Java & Java Script! :) :E Mail me m8!

webmaster@ultimate-spawn.co.uk

I should have all files you need ready by tomorrow afternoon \ Morning (Saturday, oops I mean today!).

As for the other files u say, that are linking from the window. Are they linking from this new window which will be a set size? If so & u want those links to stay in that same size window without opening another new window then u just use a basic link.

______________________________________________________________
From
Bad Boy
:farmer:

DTD sIckNesS
30-09-2000, 01:15
<td width="25%" onClick="MM_openBrWindow('01.htm','','width=480,height=320')">Link Text in here(E)</td>

thats what ive done on my page, unfortunatley, for some reason i dont get a little hand to appear, because it doesnt make it a link, however te windows still open up.

dont have a clue how to do your second problem tho :(

DTD sIckNesS
30-09-2000, 01:16
except mine was in a table so u can probably do without the td tags

/must learn to spell

Rapter Red
30-09-2000, 01:26
the post is to much for me to read, i dont read posts over 5 lines m8, :)

Waldo
30-09-2000, 01:41
Cheers - I have already e-mailed you, and tried to explain more clearly what I want to achieve (I feel I may have failed in that task though :E)

Waldo
30-09-2000, 01:44
Doh! Sorry, posted that last post without reading all the stuff that had appeared before.
sIc PsyChoTIc - I got something similar working, but a friend who tried out the site said it was a bit confusing (maybe he is a bit thick) because the cursor doesn't change into the usual LINK type.
Rapter Red - How about I break it down into lots of little sentences and e-mail them to you one at a time ;) hehe :E

Jamp30
30-09-2000, 11:16
the most simple explanation :
it js, and you just put it where the link would be

<a href="#" Onclick="window.open('urlofwindow ie.page.html','choosenameofwindow','width=480,height=320');">click to open new window</a>