473,324 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

MM_swapImage Arguments

Maybe this is a simple question, but what Arguments can be used with
the familiar MM_swapImage?

I can get it to work no problem, in this way:

MM_swapImage('THE NAME OF OLD IMAGE TAG','','MOUSEOVER IMAGE')

But what can the blank middle argument do? Have I also seen number
arguments at the end of the function as well?

I guess what I am looking for is a good specification of this function
I have seen in many places. But also, since I have seen this in many
places... is this someones or some companys code that people are
stealing? I hope not.

Thanks again,
Adam
Jul 20 '05 #1
5 33716
Adam wrote:
Maybe this is a simple question, but what Arguments can be used with
the familiar MM_swapImage?

I can get it to work no problem, in this way:

MM_swapImage('THE NAME OF OLD IMAGE TAG','','MOUSEOVER IMAGE')

But what can the blank middle argument do? Have I also seen number
arguments at the end of the function as well?

I guess what I am looking for is a good specification of this function
I have seen in many places. But also, since I have seen this in many
places... is this someones or some companys code that people are
stealing? I hope not.

Thanks again,
Adam


I am pretty sure that MM_swapImage is auto-generated code, from some
WYSIWYG editor. I think it is the MacroMedia one... cant think of the
name offhand.

Brian

Jul 20 '05 #2
> Maybe this is a simple question, but what Arguments can be used with
the familiar MM_swapImage?

I can get it to work no problem, in this way:

MM_swapImage('THE NAME OF OLD IMAGE TAG','','MOUSEOVER IMAGE')

But what can the blank middle argument do? Have I also seen number
arguments at the end of the function as well?

I guess what I am looking for is a good specification of this function
I have seen in many places. But also, since I have seen this in many
places... is this someones or some companys code that people are
stealing? I hope not.


This comes from Macromedia's Dreamweaver. Check the license that came with the
product to see what your redistribution and modification rights are.

Jul 20 '05 #3
In article <88**************************@posting.google.com >, shaggy_a79
@yahoo.com enlightened us with...
Maybe this is a simple question, but what Arguments can be used with
the familiar MM_swapImage?


MM_ is Macromedia, usually Dreamweaver but Flash or Director uses that,
too, I think.
Check their docs for the function details.
It may be that a user can customize it using Dreamweaver, so maybe the
args aren't consistent.

Ask over in the Dreamweaver NG.
http://groups.google.com/groups?hl=e...UTF-8&oe=UTF-8
&q=dreamweaver&sa=N&tab=wg

--
--
~kaeli~
If a parsley farmer is sued, can they garnish his wages?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
On 7 Jan 2004 06:22:45 -0800, Adam <sh********@yahoo.com> wrote:
Maybe this is a simple question, but what Arguments can be used with
the familiar MM_swapImage?

I can get it to work no problem, in this way:

MM_swapImage('THE NAME OF OLD IMAGE TAG','','MOUSEOVER IMAGE')

But what can the blank middle argument do? Have I also seen number
arguments at the end of the function as well?

I guess what I am looking for is a good specification of this function
I have seen in many places. But also, since I have seen this in many
places... is this someones or some companys code that people are
stealing? I hope not.


I'll answer the last question first: the MM_swapImage function - and the
associated MM_findObj, MM_swapImgRestore, and MM_preloadImages functions -
are generated by Macromedia's Dreamweaver program. I doubt they
copyrighted the functions, but you never know...

The arguments passed to the MM_swapImage function are triplet sequences.

The first is the NAME or ID of an IMG element, form control, or layer that
will have it's image replaced. You can also reference these objects even
if they exist in another frame by placing a question mark (?) in the name.
For example:

"myMainFrame?myImage"

The second does nothing (in v3.0 of the function) - there is no reason
what-so-ever for it to be there. You could pass anything to it (null,
rather than '', is probably the most efficient). The purpose might change
in the future.

The third is a URI (absolute or relative) that points to the new image to
be displayed.

This then repeats: the fourth is the NAME or ID of an IMG element, the
fifth means nothing, and the sixth is a URL, etc.

This is from what I understand of the function just by looking at it. I
haven't seen an actual reference (I don't use Dreamweaver or the above
functions). In other words - take the above with a pinch of salt; I could
be wrong.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #5
Michael Winter <M.******@blueyonder.co.invalid> writes:
I'll answer the last question first: the MM_swapImage function - and
the associated MM_findObj, MM_swapImgRestore, and MM_preloadImages
functions -
are generated by Macromedia's Dreamweaver program. I doubt they
copyrighted the functions, but you never know...


You don't need to actively copyright something. From the moment you
make it public, you have the rights granted by the copyright law.

The question is whether MM has released these functions for public
use, and if so, under which license.

(I don't use or know the functions either, but it is my impression that
the MM_* functions are pretty lousy Javascript code)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Chuck Anderson | last post by:
I have a function with 7 inputs. The last three have default values. I want to call that function specifying the first four, skip two and then specify the last. I thought I could write this...
1
by: Allen | last post by:
I am trying to add an additional photo/hyperlink to the company web site (I didn't create it) without any luck. The mouseover feature 'highlights' pics by swapping them with another pic using this...
41
by: Telmo Costa | last post by:
Hi. I have the following code: -------------------------------------- function Tunnel() { //arguments(???); } function Sum() { var sum = 0; for (i=0; i<arguments.length; i++) sum +=...
7
by: sfeher | last post by:
Hi All, Is there a way to preserve the arguments across functions? I have: <script> function myFirstFunction() { // arguments = 'param1'
36
by: Pacific Fox | last post by:
Hi all, haven't posted to this group before, but got an issue I can't work out... and hoping to get some help here ;-) I've got a base object that works fine with named arguments when called...
7
by: VK | last post by:
I was getting this effect N times but each time I was in rush to just make it work, and later I coudn't recall anymore what was the original state I was working around. This time I nailed the...
1
by: davidb | last post by:
Hi, I'm trying to use the MM_SwapImage function with images of different aspect ratios but the function can't handle it when interpreted by Safari. I'm using Mac OSX 10.4. To see the problem in...
5
by: biggio.craig | last post by:
Hi, I've used the MM_SwapImage function from Dreamweaver to make a roll over gallery for a photography website. The only problem is when I use safari it changes the aspect ratio of the images. ...
2
ADezii
by: ADezii | last post by:
When a call is made to a Sub or Function Procedure, you can supply Arguments in the exact order they appear in the Procedure's definition, or you can supply them in any position by name. To...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.