div tag

M

mac

hi,
im using i div tag to display pop up image after loading the page,
is it possible to make the popup movable?
 
R

richard

hi,
im using i div tag to display pop up image after loading the page,
is it possible to make the popup movable?


Oh please not the old shake rattle and roll stuff.

if you want it to physically move about the page, that is quite
doable. There are numerous scripts for that. You might want to check
out the "stationery" newsgroups and see some of their stuff.

I don't see any real need for a popup window to be moving about the
page.
 
S

Sherm Pendley

mac said:
im using i div tag to display pop up image after loading the page,
is it possible to make the popup movable?

Yes, but not with HTML alone. Most of the popular JavaScript libraries
have drag-and-drop features that will do the job - although the standard
disclaimer about it being a bad idea to use JS for critical features
does apply here.

sherm--
 
N

Nik Coughlin

mac said:
hi,
im using i div tag to display pop up image after loading the page,
is it possible to make the popup movable?

Hi mac,

Look into jQuery, specifically jQueryUI

There is a component called Draggable which is exactly what you are after
 
R

rf

Nik Coughlin said:
Hi mac,

Look into jQuery, specifically jQueryUI

What is it with the sudden plethora of answers containing the word
<spit>JQuery</spit> or names of other such "libraries"?

For that matter what is it with all the interest in dragging things?
There is a component called Draggable which is exactly what you are after

along with tens, or even hundreds of K of extremely badly written Javascript
that may or may not work in your viewers browser.

Or, you could roll your own.

<tinkers...>

http://barefile.com.au/test/drag.html

Quick and dirty but only 40 lines of Javascript and there is *no* nasty
browser sniffing so this will work in all current and future browsers.

Making it pretty is left as an exercise for the student.
 
D

dorayme

dorayme said:
Yes in all my browsers (including MacIE 5 jbtw) except...
Firefox

No! It is ok in FF, I forgot I turned off all js for some awful site
previously... Apologies.
 
R

rf

dorayme said:
No! It is ok in FF, I forgot I turned off all js for some awful site
previously... Apologies.

<BIG>grin</BIG>

And didn't you think I would have tested it in Firefox, Seamonkey, IE5.5,
IE6, IE7, Opera, Safari and Chrome, to name a few?
 
B

Bergamot

rf said:
What is it with the sudden plethora of answers containing the word
<spit>JQuery</spit> or names of other such "libraries"?

I, too, am baffled why jQuery is so popular.
tens, or even hundreds of K of extremely badly written Javascript

It is in the 100's, unless you gzip it.
that may or may not work in your viewers browser.

Not long ago I was looking for a script that gives a specific image effect and came upon jQuery in my search. After 5 minutes of trying it out, then another 5 looking deeper into its guts, it was clear that there was no way I'd ever use it for *anything*.
Or, you could roll your own.

I found what I needed at one of the big script archives. It was a fraction of the code and performed far better.
 
D

dorayme

"rf said:
in message

<BIG>grin</BIG>

And didn't you think I would have tested it in Firefox, Seamonkey, IE5.5,
IE6, IE7, Opera, Safari and Chrome, to name a few?

I did not think you would have tested on Mac FF and I didn't think
anyone for sure knew that there might not be some quirky differences
against the odds between browsers on different platforms.

Nevertheless, let us assume that I was completely thoughtless and let me
say this:

When I was made, my creators had a certain mission in mind for me on
earth. They tried to make me sort of fallible and human and earthling
like. Now, not being human themselves, they were a bit wooden about it.

Part of the package of the joke that is me is this cute human way of
simply doing and saying things now and again without thought. This does
not mean that the thoughts are not there at all. It just means that they
were not gathered for a task in a relevant and calm manner and applied
with pinpoint accuracy.

I have already added a particular request to my regular reports to them
about you. "Dear SX5432, rf might get suspicious if I *seem to him* to
forget too often obvious things. Please send a repair team. Best for now
to delay kidnapping him and sending back to home planet for that big
earthling reverse engineering project. It might draw unwanted attention
to our mission on earth."
 
R

richard

I, too, am baffled why jQuery is so popular.


It is in the 100's, unless you gzip it.


Not long ago I was looking for a script that gives a specific image effect and came upon jQuery in my search. After 5 minutes of trying it out, then another 5 looking deeper into its guts, it was clear that there was no way I'd ever use it for *anything*.


I found what I needed at one of the big script archives. It was a fraction of the code and performed far better.


fix your word wrap
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,220
Latest member
AugustinaJ

Latest Threads

Top