Actions

Welcome to the new and improved Dreamweaver Depot! This is a site that provides for you many new extensions to Macromedia Dreamweaver.

NEW! - Check out my web-based ACTION BUILDER it let's you create your own actions for dreamweaver!

 

Actions - Cross Browser (newest on bottom)
Name Author Date Revised Description Location
Check Browser Version

Keith Homel
khomel@mtco.com

3/1/98 Redirects to another URL based on the version (3.0, 4.0) of the browser you are using. configuration/ behaviors/ actions/
Check Browser Type Keith Homel
khomel@mtco.com
3/1/98 Redirects to another URL based on the type of browser you are using (IE or NS). (same)
Center Layers Michael Davis
mikald@outspoken.org
3/1/98

Based on width and height this will center selected layers.
[Updated 03.30.98]

(same)
Center Layers V2.0 Michael Davis 04/26/99 New! Updated for DW 2.0 (use the older one if you are still using DW 1.2) (same)
Mult-Frame Layer Control Michael Davis 3/1/98 Hide and show layers across frames (same)
Execute Custom Code Andrew Wooldridge
andreww@netscape.com
3/1/98 Allows you to insert any kind of custom code to be executed on instance of the corresponding event handler. Very handy! Basically it's a crude "insert custom action" (same)
Popup Confirm Andrew Wooldridge 3/1/98 This builds on the Popup Message behavior from MM. It displays a "confirm" dialog box and assigns the boolean value to a top level (global) variable of your choosing. (same)
Popup Prompt Andrew Wooldridge 3/1/98 I modified the Popup Confirm to do the javascript "prompt" popup that allows you to take user input and place it into a top level variable of your choosing. You can later get to it via the same way as the Popup Confirm method (see it's desc.) (same)
Conditional Andrew Wooldridge 3/1/98 This one allows you to use Dreamweaver to do IF/THEN/ELSE statements. Its also very powerful because you can also do unconditional assignments like IF TRUE (always do) window.bgColor="green". You can also fetch the global values assigned by the popup actions above and do something useful with them. (same)
Watch Property Andrew Wooldridge 3/1/98 Basically implement's the Watch() method. Allows you to monitor some object's property and do some javascript if it get's changed. For instance watch a window's .closed property and close some other window if it is changed. (To close two windows at a time) (same)
Set Cookie Andrew Wooldridge 4/17/98 Allows you to set a cookie and expiration time in days. actions/cookie
Get Cookie Andrew Wooldridge 4/17/98 Allows you to get a cookie (usually set with SET COOKIE above) and assign it to some other value like a global (i.e. window.myStoreHouse) for use wth other actions. actions/cookie
Bust Frames Andrew Wooldridge 4/21/98 Place this in an onload event on your page and it will check to see if your page is in someone else's frameset and "bust" you out of it, so that your page is fully shown. configuration/ behaviors/ actions/
Slide Layer Andrew Wooldridge

Revised:

6/14/99

This action lets you slide layers from one position to another. It is "interruptable" by another slide layer action on the same layer (so you dont get "jitters"). Now allows you to move multiple layers at a time. Example. Now supports IE!! Now can control or origininate from nested layers. (same)
Slide Layer Stop Andrew Wooldridge 4/27/98 Used in conjunction with SLIDE LAYERS. Will stop a layer in its tracks when sliding with SLIDE LAYERS. (same)
Move Layer Andrew Wooldridge

Revised:

4/27/98

This action lets you move a layer from one position to another ("jumping" - no sliding). You can jump relative to its current position or to an absolute position. Now supports IE!! Now can control or originate from nested layers. (same)
Persist Layer v2 and
Persist Layer Stop
Andrew Wooldridge 06/11/99

Originally an object, this allows any layer in IE or NS to "persist" meaning it keeps it's position relative to the window even if the rest of the page scolls off the screen. Can have multiple persistant layers at a time. Not compatible with Slide Layer - use Persist Layer Stop first.

NEW! Version 2.0 of persist layer only requires a layer name! No complicated path info!

(same)
Spawn Window
and
Kill Window
Andrew Wooldridge 6/18/98 Spawn window allows you to create windows that can be programmatically closed. Kill window closes them. (same)
Quick Window Alexander Czernay
czernay@cnt.de
6/24/98 It pops up a small window with info-text and closses it as you request. To try it create a link and attach Quickwindow to onMouseOver with some headline and message and set the status to on. Also attach Quickwindow to onMouseOut and leave everything empty (most important leave status off). Here is a test file example. (same)
Load Frame Andrew Wooldridge 7/7/98 This action allows you to load any content into any frame without depending on Goto URL detecting the frame. Useful when you are building pages that will eventually be in a frame but not currently during development. Typically you will reference the frame with "top.framename" to get to the outermost frame(window). You could also use this to send content to child windows if you know their javascript name (from Spawn Window). I built this with my Action Builder object. ''
Write(to) Frame Andrew Wooldridge 7/7/98 This action is a combo of load frame and document write. You give it a frame name (like "top.foo") and some html code (no single quotes!) and it will on event write that content to that frame. I built this action with my Action Builder object.  
Change BG Color Andrew Wooldridge 7/7/98 This Action allows you at any time to change the current document's background color. I bulit this action with my Action Builder Object.  
Search Engine!
Search Query
Search Entry
Andrew Wooldridge 7/10/98 This is an Action/Object Combo. You build a search engine by dropping search Entries into a page via the Object menu. Then you hook the Search Query Action to some event like a click event on a link. Place the Query in your Behaviors folder and the Entry HTML and IMAGE in your Objects folder. Use lower case keywords as the search is case sensitive. You can have multiple keys that match a search keyword by dropping more Entries with the same keyword and different content.  
Open FullScreen Window

Massimo Foti

massimo.foti@fantastic.ch

8/03/98 This action allows you to open a full screen window with a url you choose. Works on both IE and Netscape.  
ResizeTo Window Massimo Foti 8/04/98 ResizeTo Window: Resize the window to a specified width and height Works on NN4+ and IE4+  
ResizeBy Window Massimo Foti 8/04/98 ResizeBy Window: Resize the window by a specified width and height Works on NN4+ and IE4+  
MoveTo Window Massimo Foti 8/04/98 MoveTo Window: Move the window to a specified width and height Works on NN4+ and IE4+  
MoveBy Window Massimo Foti 8/04/98 MoveBy Window: Move the window by a specified width and height Works on NN4+ and IE4+  
Back to my frame Massimo Foti 8/04/98 Back to my frame: Check if the window is inside a frameset, if not will replace the document with a URL of your choice  
Focus Remote Window Massimo Foti 8/05/98 Focus Remote Window: Focus a remote window. Works on NN3+ and IE4+  
Focus Window Massimo Foti 8/05/98 Focus Window: Focus the window. Works on NN3+ and IE4+  
Move Remote Window By Massimo Foti 8/05/98 Move Remote Window By: Move a remote window by a specified width and height. Works on NN4+ and IE4+  
Move Remote Window To Massimo Foti 8/05/98 Move Remote Window To: Move a remote window to a specified width and height. Works on NN4+ and IE4+  
Resize Remote Window By Massimo Foti 8/05/98 Resize Remote Window By: Resize a remote window by a specified width and height. Works on NN4+ and IE4+  
Resize Remote Window To Massimo Foti 8/05/98 Resize Remote Window To: Resize a remote window to a specified width and height. Works on NN4+ and IE4+  
Print Massimo Foti 8/10/98 Cross browser print. Use my Stop Errors object to keep from getting an error in IE if you cancel the print job.  
Delay Link Andrew Wooldridge 8/21/98 Usually onclick - this action waits a set amount of time before going to a new location you specify. Useful for when you pre-load images for a new page and you want to wait till the preload is finished before going to the page.  
Resize Layer Massimo Foti 8/24/98 Resizes a layer to the dimensions you specify.  
Screen Based Resize Layer Massimo Foti 8/24/98 Checks the screen dimensions and resizes the layer accordingly.  
Screen Based Move Layer Massimo Foti 8/24/98 Checks the screen dimensions andmoves the layer accordingly  
Color Depth Redirection Massimo Foti 8/24/98 Checks the users color depth and redirects to a new page.  
Generic Redirection Andrew Wooldrdige 8/26/98 Using any javascript expression, you can redirect the user to any page - or redirect other frames! You could use this to test for anything - and chain them to do complex redirection! Similar to Load Frame - but with a javascript test.  
Shake Screen Ram Ganesh (with some changes by AW) 12/23/98 Gives the effect that your window is having an earthquake! Cool effect for onload or whenever someone clicks a link of great importance.  
Check Language Renfield Kuroda   Here's his DW2.0 checklanguage behavior -- like the check browser but checks for a Japanese browser and redirects accordlingly.  
Calc One Field Andrew Wooldridge 04/16/99 This action takes a form field, does a calculation on it and spits out the value in the same or another field. Update! you can now use another field reference in the "second value field) (so instead of "3" you could use " document.forms[0].joe.value) " - you can still use numbers.  
Calc Many Andrew Wooldridge 04/27/99 This action is similar to calc one field except you can add (or subtract, etc.) many fields together and put the result in another field. Useful for doing a "grand total" field. You could also do arbitrary calculations like "8,8,4" and "+" would give you the sum of those numbers.  
Round Decimal Andrew Wooldridge 04/16/99 This action takes a form field that contains a number and rounds that number to the nearest decimal you choose.  
Status Clock Andrew Wooldridge 04/26/99 This action puts a little clock in your status line.  
Replace Page Andrew Wooldridge 06/15/99 This action "replaces" the page you are currently on with the one you specify with the URL. The replaced page is removed from the browser history so when you hit back you go to the page before the original in the history. Allows you to do "redirects" without "trapping" someone in a loop if they hit back.  

 

Actions - NS 4.x or higher
Name Author Date Revised Description Location
Create Layer Andrew Wooldridge 3/1/98 My first Action! This allows you to dynamically create layers with control of the width, top, left, and allows you to place HTML content into the layer! To make a layer with a "background" color use a table with a single cell and set the table's bgcolor. Requires Netscape. configuration/ behaviors/ actions/
Scroll Layer Michael Davis 3/1/98 This suite of two actions allows you to "scroll" a layer in any direction, asuming that the viewabled area (clipping) is smaller than the actuall layer. So you could emulate a "rolling credits" effect with layers. Two actions - scroll layer and scroll layer stop. (same)
Document Write Andrew Wooldridge 5/29/98 This simple action will dynamically write content of your choosing into whichever frame (or window) you choose. (same)
Write to Java Console Andrew Wooldridge 7/9/98 This simple Action will send a mesage of your choosing to the java console (Netscape only). This is really great for debugging scripts and "behind the scenes" messages to yourself. (same)
View Page Source Andrew Wooldridge 08/12/98 This action might work with IE, but I havent tested it. This will allow you to view the source of any web page. ''
Open in Composer Andrew Wooldridge 08/12/98 This action allows you via onclick or any event to open a page in Netscape's Composer! ''