473,396 Members | 2,011 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,396 software developers and data experts.

for what are used following functions

Hallo. I have a question. For what are used following functions
MM_swapImgRestore, MM_preloadImages, MM_findObj(n,d), MM_swapImage(). I
would be grateful for the answer or source where I could found these
informations (www,books). I need description or example of using.
Jul 23 '05 #1
5 1624
MR. Ask wrote:
Hallo. I have a question. For what are used following functions
(For future reference, in English that question would more commonly be
expressed "What are the following functions used for?")
MM_swapImgRestore,
Restoring to the original image, images that were previously swapped
using - MM_swapImage.
MM_preloadImages,
Pre-loading images (into Image objects, where supported).
MM_findObj(n,d),
Finding (returning references to) elements within the DOM by name or ID
string reference.
MM_swapImage().
Swapping images (making their SRC attribute point to a different image
source so that different image is displayed (where supported).
I would be grateful for the answer or source where
I could found these informations (www,books).
The "MM_" prefix is indicative of functions used in Macromedia products
so it is the documentation for those products that should be examined
for explanations of the functions. And it is the output of those
products that should be examined for the source code of the functions
(Dreamweaver being the most likely candidate).
I need description or example of using.


These functions are designed to be automatically generated/employed by
machines. There are overly general, inefficient and obscurely written
(they are also not that safe or cross-browser). A human programmer would
(should) not choose to use these functions at all.

Richard.
Jul 23 '05 #2
On Sat, 19 Feb 2005 14:45:44 +0100 MR. Ask wrote:
Hallo. I have a question. For what are used following functions
MM_swapImgRestore, MM_preloadImages, MM_findObj(n,d), MM_swapImage(). I
would be grateful for the answer or source where I could found these
informations (www,books). I need description or example of using.

I have found that it is much easier to put an image in a division, then show
or hide the division as needed.
Jul 23 '05 #3
Richard (RtS) wrote:
On Sat, 19 Feb 2005 14:45:44 +0100 MR. Ask wrote:
Hallo. I have a question. For what are used following
functions MM_swapImgRestore, MM_preloadImages, MM_findObj(n,d),
MM_swapImage(). I would be grateful for the answer or source
where I could found these informations (www,books). I need
description or example of using.


I have found that it is much easier to put an image in a
division, then show or hide the division as needed.


As you posses no technical knowledge in any web-related area, are not
rational enough to ever comprehend programming and apparently are not
capable of understanding simple statements in you own native tongue, you
will find yourself labouring under may misguided and mystical beliefs.
However, others are not necessarily subject to your inadequacies and
would generally benefit from never hearing from you at all.

It is probably redundant to point out that you have managed to be
spectacularly irrelevant in your response to the question actually
asked.

Richard.
Jul 23 '05 #4
Sat, 19 Feb 2005 14:12:07 -0000, na comp.lang.javascript, Richard Cornford
napisał(a):
I need description or example of using.


These functions are designed to be automatically generated/employed by
machines. There are overly general, inefficient and obscurely written
(they are also not that safe or cross-browser). A human programmer would
(should) not choose to use these functions at all.

Richard.

Sorry for my English. I ask because I want to create web pages with some
pictures and I don't want this pictures load all the times. I would use
this pictures as menu. I observed that in many pages these functions are
used and I wanted to do the same.
Jul 23 '05 #5
MR. Ask wrote:
Sat, 19 Feb 2005 14:12:07 -0000, na comp.lang.javascript, Richard Cornford
napisał(a):
I need description or example of using.


These functions are designed to be automatically generated/employed by
machines. There are overly general, inefficient and obscurely written
(they are also not that safe or cross-browser). A human programmer would
(should) not choose to use these functions at all.

Richard.


Sorry for my English. I ask because I want to create web pages with some
pictures and I don't want this pictures load all the times. I would use
this pictures as menu. I observed that in many pages these functions are
used and I wanted to do the same.


The functions that you are referring to (that start with MM_) are a
product of Macromedia's (failed) attempt to write a "standard" function
that works in most (if not all) cases. Thats impossible to do. The best
script you can write is very specific to a particular page. If all you
want is a simple image rollover, it is done a lot simpler, and more
efficient, than the MM_ functions.

<img src="someImage.jpg" name="myImage" width="XX" height="XX" alt="XXXX">

function swapImages(imageName,newSource){
if (document.images && document.images[imageName]){
document.images[imageName].src = newSource;
}
else{return false;}
}

And you call it something like this:

onmouseover="swapImages('myImage','newImageNameHer e')
onmouseout=""swapImages('myImage','oldImageNameHer e')

<FAQENTRY>
Is there a notes section that deals with image swaps? I know 4.31
addresses why rollovers are slow but I do not see anything in the FAQ
itself that addresses how to do an image swap.
</FAQENTRY>

When replying to this message, please make Richard's life simpler and
modify the FA*ENTRY tags above.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #6

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

Similar topics

2
by: Erwin Moller | last post by:
Hi group, I have an includefile that I (ahum) include in many scripts. It contains only functions I need now and then. Now I was wondering how things work behind the scenes. Is the whole...
26
by: Steven Bethard | last post by:
I thought it might be useful to put the recent lambda threads into perspective a bit. I was wondering what lambda gets used for in "real" code, so I grepped my Python Lib directory. Here are some...
3
by: qazmlp | last post by:
I was using the following code to convert the string to lowercase. string foo = "Some Mixed Case Text"; transform(foo.begin(), foo.end(), foo.begin(), tolower); I thought the above code is...
4
by: J. Campbell | last post by:
From reading this forum, it is my understanding that C++ doesn't require the compiler to keep code that does not manifest itself in any way to the user. For example, in the following: { for(int...
2
by: Thomas G. Marshall | last post by:
Arthur J. O'Dwyer <ajo@nospam.andrew.cmu.edu> coughed up the following: > On Thu, 1 Jul 2004, Thomas G. Marshall wrote: >> >> Aside: I've looked repeatedly in google and for some reason cannot >>...
10
by: Not Available | last post by:
On the host server: namespace JCart.Common public class JCartConfiguration : IConfigurationSectionHandler private static String dbConnectionString; public static String ConnectionString { get...
2
by: Victor | last post by:
Hi everybody ! I would like to consult a guru for the obstacle I cannot tackle alone. My environment is Visual Studio 2005 under Windows XP. I have two projects : (A) A DLL - HerHair.dll...
9
by: Simon | last post by:
Hi, I have written an ActiveX object to resize images and upload them to a database, this all works fine but when I close internet explorer the process iexporer.exe is still running in my task...
7
by: raashid bhatt | last post by:
why are GOTO's not used they just a simple JMP instructions what's bad about them
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.