Paradox
©
Fisana

Jump to content


- - - - -

I need popups


  • Please log in to reply
11 replies to this topic

#1 Guest_myco_*

Guest_myco_*
  • Guest

Posted 05 November 2003 - 09:28 PM

i'm looking for info on how to make those textwindows that popup with usually a yellow background and text in black for some html pages i'm working on and i don't want to use java ,anyone knows how to do this (in dreamweaver) ?
i want to make difficult words on a site explained with a small window popping up Posted Image

#2 Guest_erebus_*

Guest_erebus_*
  • Guest

Posted 05 November 2003 - 09:42 PM

Pretty sure it needs to be done in Javascript, which is much less involved than Java.

Don't have a tutorial for you, but do a search for "javascript disable right click" or something like that. Most sites use the effect to disable right click on their sites, a simple Windows popup message.

#3 Guest_smerd_*

Guest_smerd_*
  • Guest

Posted 05 November 2003 - 09:59 PM

Like a glossary? So you want the <a > link to open a new, smaller window? It's easy (DW 4.0 & MX). For the link, you need to designate "javascript:;" and then you pick behavior, Open Browser Window (fill in the form) and onClick.
Highlight the text to link, define the link as javascript:; pick behavior, pick the plus sign, pick Open Browser Window, then onClick. The popup window needs to be a separate HTML doc.
Macromedia has a free forum for Dreamweaver - check it out: http://webforums.mac...om/dreamweaver/

#4 Guest_smerd_*

Guest_smerd_*
  • Guest

Posted 05 November 2003 - 10:01 PM

Oh yeah - I think you're pretty much stuck w/javascript. Even for onLaunch or onExit.

#5 Guest_mushroom_*

Guest_mushroom_*
  • Guest

Posted 05 November 2003 - 10:29 PM

um to make popups when something is clicked...

<a href=# onClick="window.open('http://www.foo.com/bar.htm','windowname','width=700,height=600,top=0,left=0, toolbar=no,menubar=no,location=no,directories=0,st atus=0,resizable=1,scrollbars=1,titlebar=0');">Cli ck Here</a><br>

This will make a window popup and load the content of 'http://www.foo.com/bar.htm'. The name will be 'windowname', height, width, opens in the upper left hand corner or the screen, blah blah blah.

See here for all the explanations:
http://msdn.microsof...ods/open_0.as p


This is the best way to do it. BTW, you can close the window with a "close" link on that popup page. <a href=# onclick="window.close('windowname')";>Close Me</a>

You dont have to use all the options above, it just gives you flexibility. Only use what you need... no need to overcode. You can also you relative paths for linking.

#6 Guest_myco_*

Guest_myco_*
  • Guest

Posted 05 November 2003 - 11:48 PM

Sno , i pasted the code in the page and yes it works but it's another kind of window , no scrollbar and fixed size
the window i'm talking about is the same as on this site when i scroll over a picture a windows pops up saying : upload ,where it gave the name of the pic in the old mycotopiasite, that's the kind of window , only it explains the word in the text that needs explanation
smerd ,i find the javascript in behaviours etc ,i'll test it to see if it is usable ,this has to come on a cd about bicycleracing and most is just html pages because it is rather easy for interactivity and freedom of design with layers etc ,i liked the idea of a tiny explanationwindow that pops up near the word that is explained so that there is no need to go to a glossary page
i made a printscreen of such a window here in the photgallery
Posted Image

#7 Guest_myco_*

Guest_myco_*
  • Guest

Posted 06 November 2003 - 12:30 AM

erebus , i've found one javascript at dynamicdrive and it's called : pop it menu , so i remove the url link in the code and i can write what i want within the window ,look promising
thanks to you all for lightning support

#8 Guest_smerd_*

Guest_smerd_*
  • Guest

Posted 06 November 2003 - 07:38 AM

Sno - I've used something much like what you provided (the # is still null, I think) except using the page.htm instead. I've heard null links are something to avoid - something like 1 in 10 users has javascript disabled. Anyway, is this still a javascript function or some other extension? Just wondering. I know it's preferable.

#9 Guest_smerd_*

Guest_smerd_*
  • Guest

Posted 06 November 2003 - 07:40 AM

(This is what I mean...)

<a href="page.htm" onclick="window.open('page.htm', 'windowname', 'width=300,height=250');return false;">Text link</a>


#10 Guest_mushroom_*

Guest_mushroom_*
  • Guest

Posted 06 November 2003 - 12:01 PM

smerd: it's the same. doesnt matter. both javascript

myco: the picture 'upload' thing is just an alt="blah" in the <img src tag.

Here's an example of using the title tag for a normal link:
<a href="http://www.yahoo.com" title="This is an alt to the link">Blah</a>

#11 Guest_mushroom_*

Guest_mushroom_*
  • Guest

Posted 06 November 2003 - 12:04 PM

I would make a link but the board software doesn't like that tag. Posted Image

#12 Guest_smerd_*

Guest_smerd_*
  • Guest

Posted 06 November 2003 - 01:33 PM

Oh, over an image it's just alt text. Within the image tag, put alt="Blah blah blah." Over a link, gotta go w/title="Blah blah blah." Neither of those is jscript. I see what yer after now. C ya.




Like Mycotopia? Become a member today!