View previous topic :: View next topic |
Author |
Topic : "Dreamweaver Question" |
Ben Barker member
Member # Joined: 15 Sep 2000 Posts: 568 Location: Cincinnati, Ohier
|
Posted: Wed Feb 20, 2002 3:43 pm |
|
 |
Can you find any webpages where this is being done?
Sorry, I don't have a real answer. |
|
Back to top |
|
Jabberwocky member
Member # Joined: 08 May 2000 Posts: 681 Location: Kansas
|
Posted: Thu Feb 21, 2002 12:23 am |
|
 |
Okay I'm working on my class webpage and I can't figure out how to make a picture both mouse rollover and when clicked a new window pop up to a specific size. I can do the pop up and rollover but the pop up window isn't the size I want. How can I do both?
I tried making the picture rollover in Fireworks and take it in and using hotspot as window pop up (no rollover effect). I've tried making the picture rollover and just the hot spot link open the window (no rollover). I've tried making the picture both(will open window as rollover). Tried making hot spot both (no rollover).
I know it can be done, but how? My instuctor is just as stumped and told me to hunt down code and do it manually. If anyone can help please! |
|
Back to top |
|
smalbrain junior member
Member # Joined: 31 Oct 2000 Posts: 41 Location: Australia
|
Posted: Thu Feb 21, 2002 3:18 am |
|
 |
are you popping up the new window by pointing the link target to _blank or something similar?
you have to add some extra javascript code manually to get the window to change size - you can usually find a good tutorial or example you can cut and paste just by looking up javascript and window popup - what the hell i'll do it for you - http://javascript.internet.com/generators/popup-window.html
there - that should help
for your rollover image - just take the onClick="blah" event handler that this thingy generates and stick it under the onMouseover-"blahblah" in your code.
hope this helps. |
|
Back to top |
|
strata member
Member # Joined: 23 Jan 2001 Posts: 665 Location: stockholm, sweden
|
Posted: Thu Feb 21, 2002 3:34 am |
|
 |
here's the javascript I use for the popup window:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Start(url) {
var n = window.open(url,'main','top=70,left=70,height=500,width=700,toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=no')
}
// End -->
</SCRIPT>
I forgot to mention that 'main' is the page it's linked to, so the html file is called main.html, so if you change that to bleh it would say url,'bleh', etc =)
as for the mouseovers... I've never done them in dreamweaver... I've got a javascript for that too and as I usually only use homesite to code I just stick that in there... tell me if you want that as well.
edit: farther explanation
[ February 21, 2002: Message edited by: strata ] |
|
Back to top |
|
Jabberwocky member
Member # Joined: 08 May 2000 Posts: 681 Location: Kansas
|
Posted: Thu Feb 21, 2002 6:31 am |
|
 |
Thank you thank you thank you.... you guys are such heros!!!!! |
|
Back to top |
|
|