/    Sign up×
Community /Pin to ProfileBookmark

What is this called?

Hi,

I am new to DHTML. I am trying to find a script that will do something similiar to this:

[url]http://www.geocities.com/Heartland/Plains/6271/compquip.html[/url]

(it’s the Yahoo sponsored links in the upper right).

The problem is, I don’t know what I am searching for. DHTML “menus” seem to be for navigation. What would I search for to find this thing?

I have found a script pretty close to it, at dynamicdrive, but it only works in IE. I need something that works in all browsers, or at least most of them, if that is possible.

Thanks for any help!

Aggie

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeNov 30.2004 — [URL=http://cheers-sendai.com/test/yahoo-style-ads-box.htm#]I think this is the basic idea[/URL].

Have a look at the source. It's very simple - there's an absolutely positioned div with two divs inside it - buttons and ads. The buttons toggle the display property of certain divs - block/none. The 'toggle' button opens and closes the div with the ads whiile the 'close' button does the same to the wholoe thing (of course, after you've changed the display of the whole thing - it's gone).

And of course, this is just an (ugly) example - style it as you see fit with css.

I hope this helps.
Copy linkTweet thisAlerts:
@AgathaauthorDec 01.2004 — Thank you BonRouge,

That is helpful. I noticed that I can't view the source of the geocities page! But that popup works the same in IE and NS! Think they'd share the code with me? ? I doubt it! :p

If you were going to search the net for a script like that, what would you search for? dhtml popup? dhtml window? Surely it has a name!

Thanks again for the help on the toggle button!

Aggie
Copy linkTweet thisAlerts:
@BonRougeDec 02.2004 — The source of the Geocities ad thing is here : [URL]http://www.geocities.com/js_source/pu5geo.js[/URL] .

What would you call it....? I guess something like "DHTML (or javascript) pop-up". Dynamic Drive has something similar (though not the same) [URL=http://www.dynamicdrive.com/dynamicindex11/abox2.htm]here[/URL]. It says it works in all browsers.

I hope this helps.
×

Success!

Help @Agatha spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...