![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I think I may still have a use for a modal window or two for my website (like when some prankster enters in "fuck fuck fuck" in my search engine!) but I think maybe I should have a less "intrusive" or "in-your-face" way of presenting "optional information," the sort you associate with sidebars or even footnotes. How about a comic book-style thought or dialog balloon onMouseOver? |
|
Yeah, that'd be awesome! Only pops up onMouseOver and still allows access to the rest of the page while displayed, while disappearing on its own without needing the user to click an "okay" or "back" link or button. I wonder, could I somehow use the modal window code I have to achieve the same thing, only without "freezing" the webpage? Moreover, how do I style the thinggy to look like a comic book thought balloon?? |
|
That thought balloon would be a kind of pop-up window, with information (text), but it only appears onMouseOver and disappears (with a nice little fading away effect, I hope!) just as easily...yet it has to *look* like a comic book-style thought balloon and not just another box or rectangle with text! How would I style such a thinggy?? |
#3
| ||||
| ||||
|
| Easily done. |
|
Don't use a real modal window, instead use a "Web 2.0 popup". |
|
Get a DIV, give it a transparent background and a background image that looks like a speech bubble, with transparent pixels around its rounded corners. Make the DIV visibility: hidden. Then use JS to change it to visibility: visible when you want it to pop up. The rest of the page won't be frozen. |
|
Fading away can be done but is a bit more tricky. You'd need to set the element's opacity gradually from 1.0 to 0.0 before making it visibility: hidden when it reached 0. For that you use setInterval (or setTimeout but I prefer setInterval). I think we explained this the other day. |
#4
| |||
| |||
|
|
On May 2, 4:31 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Easily done. I found this code at http://colorado-springs.pm.org/balloonHint.html but the site doesn't seem to provide a working example! |
|
Don't use a real modal window, instead use a "Web 2.0 popup". |
|
Yeah, something like that Kontera in-line text stuff, except totally client-side...hmmm, actually, that Kontera stuff can be annoying, too...better switch back to onClick, since onMouseOver can be accidental...what I will do with an onMouseOver, however, is make the "link" or "linking/summoning element" get highlighted, as if "warning"...good idea, you think? This way, it's not "in-your- face"...don't want to be in-your-face to my visitors, even if it's relevant information.... Get a DIV, give it a transparent background and a background image that looks like a speech bubble, with transparent pixels around its rounded corners. Make the DIV visibility: hidden. Then use JS to change it to visibility: visible when you want it to pop up. The rest of the page won't be frozen. Thanks, that sounds like a plan! I don't see the concrete steps involved due to my present technical limitations, but the broad contours of your suggestion sound like something I can learn to achieve! Fading away can be done but is a bit more tricky. You'd need to set the element's opacity gradually from 1.0 to 0.0 before making it visibility: hidden when it reached 0. For that you use setInterval (or setTimeout but I prefer setInterval). I think we explained this the other day. Indeed, for which I am very grateful -- I am able to make text fade in, now...ideally the whole "box" or "balloon" should fade in, but the text itself fading in is impressive and very nice. Then again, maybe one fade effect is plenty -- maybe instead of fade-out the balloon or box should just disappear ASAP.... |
#5
| |||
| |||
|
|
Prisoner at War wrote: On May 2, 4:31 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Easily done. I found this code at http://colorado-springs.pm.org/balloonHint.html but the site doesn't seem to provide a working example! That's just a regular popup window. Don't use a real modal window, instead use a "Web 2.0 popup". Perhaps Ben will write a simple example for you, I'm too sleepy at the moment to dig mine out. |
#6
| |||
| |||
|
|
On 2008-05-03, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: Prisoner at War wrote: On May 2, 4:31 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Easily done. I found this code at http://colorado-springs.pm.org/balloonHint.html but the site doesn't seem to provide a working example! That's just a regular popup window. Don't use a real modal window, instead use a "Web 2.0 popup". Perhaps Ben will write a simple example for you, I'm too sleepy at the moment to dig mine out. Here you are: http://www.tidraso.co.uk/misc/bubble/ |
#7
| |||
| |||
|
|
In article <slrng1o9ke.i35.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2008-05-03, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: Prisoner at War wrote: On May 2, 4:31 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Easily done. I found this code at http://colorado-springs.pm.org/balloonHint.html but the site doesn't seem to provide a working example! That's just a regular popup window. Don't use a real modal window, instead use a "Web 2.0 popup". Perhaps Ben will write a simple example for you, I'm too sleepy at the moment to dig mine out. Here you are: http://www.tidraso.co.uk/misc/bubble/ Brilliant in Mac FF and Opera but not right in Safari 2, iCab. The bubbles are very partially shown, the left bits, in the latter two. |
Although there the circumstances required more
#8
| |||
| |||
|
|
On 2008-05-03, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrng1o9ke.i35.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2008-05-03, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: Prisoner at War wrote: On May 2, 4:31 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Easily done. I found this code at http://colorado-springs.pm.org/balloonHint.html but the site doesn't seem to provide a working example! That's just a regular popup window. Don't use a real modal window, instead use a "Web 2.0 popup". Perhaps Ben will write a simple example for you, I'm too sleepy at the moment to dig mine out. Here you are: http://www.tidraso.co.uk/misc/bubble/ Brilliant in Mac FF and Opera but not right in Safari 2, iCab. The bubbles are very partially shown, the left bits, in the latter two. .... Actually one could do bubbles sized in ems using IMG rather than background-image... I was thinking this last. Perhaps, given the tricky nature of this task |
#9
| |||
| |||
|
|
In article <slrng1oc5v.i35.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: [...] Actually one could do bubbles sized in ems using IMG rather than background-image... I was thinking this last. Perhaps, given the tricky nature of this task and cost-benefit, just pics of text to go in pics of bubbles. And make big enough for most people? |
#10
| |||
| |||
|
|
On 2008-05-03, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrng1oc5v.i35.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: [...] Actually one could do bubbles sized in ems using IMG rather than background-image... I was thinking this last. Perhaps, given the tricky nature of this task and cost-benefit, just pics of text to go in pics of bubbles. And make big enough for most people? Good idea. Then you can also use a cartoony font. I can't help thinking that anyone sensible enough to worry about font sizes and readability isn't going to be doing fading-out pop-up speech bubbles in the first place. |
![]() |
| Thread Tools | |
| Display Modes | |
| |