Witam!
Napisalem taka oto funkcje:
function img_Pokaz(adres ,formName,hint_ img)
{
eval('document. '+formName+'.'+ hint_img+'.src = "'+adres+'" ');
}
i wplotlem go w znacznik img
<img src="images/Zareczyny.gif" width="165" height="50" alt=""
usemap="#Mapa_m enu_zareczyny" border="0" name="zareczyny "
onMouseOver="im g_Pokaz('images/Zareczyny_kolor .gif','form_glo wny','zareczyny ');"
onMouseOut="img _Pokaz('images/Zareczyny.gif', 'form_glowny',' zareczyny');" />
Problem w tym, ze na IE 7.0. dziala wszystko ok, a na Firefoxie niestety nie
podmieniaja sie gify i menu daje efekt menu statycznego.
Jak powinienem zmodyfikowac wiec funkcje img_Pokaz by dostosowac ja do
wszystkich przegladarek?
Z gory dzieki za posta
Pozdrawiam
M. 9 1819
Użytkownik "K." <ha************ @poczta.onet.pl napisał w wiadomości
news:f0******** **@news.onet.pl ...
Witam!
Napisalem taka oto funkcje:
function img_Pokaz(adres ,formName,hint_ img)
{
eval('document. '+formName+'.'+ hint_img+'.src = "'+adres+'" ');
}
i wplotlem go w znacznik img
<img src="images/Zareczyny.gif" width="165" height="50" alt=""
usemap="#Mapa_m enu_zareczyny" border="0" name="zareczyny "
onMouseOver="im g_Pokaz('images/Zareczyny_kolor .gif','form_glo wny','zareczyny ');"
onMouseOut="img _Pokaz('images/Zareczyny.gif', 'form_glowny',' zareczyny');"
/>
Problem w tym, ze na IE 7.0. dziala wszystko ok, a na Firefoxie niestety
nie podmieniaja sie gify i menu daje efekt menu statycznego.
Jak powinienem zmodyfikowac wiec funkcje img_Pokaz by dostosowac ja do
wszystkich przegladarek?
Z gory dzieki za posta
Pozdrawiam
M.
Here is the transaltion of my problem
Hello!
I wrote such Javascript function:
function img_Show(adres, formName,hint_i mg)
{
eval('document. '+formName+'.'+ hint_img+'.src = "'+adres+'" ');
}
and added into img element:
<img src="images/Zareczyny.gif" width="165" height="50" alt=""
usemap="#Mapa_m enu_zareczyny" border="0" name="zareczyny "
onMouseOver="im g_Show('images/Zareczyny_kolor .gif','form_glo wny','zareczyny ');"
onMouseOut="img _Show('images/Zareczyny.gif', 'form_glowny',' zareczyny');" />
There is a problem because it works fine in IE 7.0., but on Firefox not fine
and there are
no replace for gif on menu and it gives such effect that menu is static
How should look like img_Show function to fit it into all web browsers?
Thank you in advance for post
Cheers
M.
Hello K,
function img_Show(adres, formName,hint_i mg)
{
eval('document. '+formName+'.'+ hint_img+'.src = "'+adres+'" ');
}
Maybe try this:
document.getEle mentByName(hint _img).src = adres;
Not tested, but I think it works in all new browsers (DOM).
greetz, Ralf...
Użytkownik <Ra******@gmx.d enapisał w wiadomości
news:11******** **************@ b58g2000hsg.goo glegroups.com.. .
Hello K,
>function img_Show(adres, formName,hint_i mg) { eval('document. '+formName+'.'+ hint_img+'.src = "'+adres+'" ');
}
Maybe try this:
document.getEle mentByName(hint _img).src = adres;
Not tested, but I think it works in all new browsers (DOM).
greetz, Ralf...
Unfortunately it doesn`t work either.
Marcin
Hello K,
Unfortunately it doesn`t work either.
Okay, I tried it now with not 'name', but 'id'.
Use the ID-attribut in the img element and use the getElementById( )
function.
like: <img src='...' id='zareczyny' ...>
document.getEle mentById('zarec zyny').src = varValue;
It works with .alt, I think also with .src .
have a nice day!
Uzytkownik <Ra******@gmx.d enapisal w wiadomosci
news:11******** *************@y 80g2000hsf.goog legroups.com...
Hello K,
>Unfortunatel y it doesn`t work either.
Okay, I tried it now with not 'name', but 'id'.
Use the ID-attribut in the img element and use the getElementById( )
function.
like: <img src='...' id='zareczyny' ...>
document.getEle mentById('zarec zyny').src = varValue;
It works with .alt, I think also with .src .
have a nice day!
It doesn`t work for both getElementById and getElementByNam e.
I think I shoul do this by adding some CSS service.
Have a nice day too
Marcin
It doesn`t work for both getElementById and getElementByNam e.
Don't know what's wrong with your code, but I used your snippet and
added it to an example html-file.
It works fine.
take a look at: http://www.wonderer.de/test/img_over.html
greetz...
Uzytkownik <Ra******@gmx.d enapisal w wiadomosci
news:11******** **************@ y80g2000hsf.goo glegroups.com.. .
>It doesn`t work for both getElementById and getElementByNam e.
Don't know what's wrong with your code, but I used your snippet and
added it to an example html-file.
It works fine.
take a look at: http://www.wonderer.de/test/img_over.html
greetz...
Thank you for help.
It works now.
I had to change maps positions for Firefox, and set different for IE.
Here is me result: http://www.slub.zmyslowski.pl/
Thank you Ralf
Marcin
MZ wrote :
Uzytkownik <Ra******@gmx.d enapisal w wiadomosci
news:11******** **************@ y80g2000hsf.goo glegroups.com.. .
>>It doesn`t work for both getElementById and getElementByNam e.
Don't know what's wrong with your code, but I used your snippet and added it to an example html-file. It works fine.
take a look at: http://www.wonderer.de/test/img_over.html
Here is me result:
http://www.slub.zmyslowski.pl/
Line 17: <script language="Javas cript" type="text/javascript">
language is deprecated; just remove language="Javas cript"
Line 40: <!--
Just remove the HTML comments; they are unneeded and can create side effects http://www.javascripttoolbox.com/bes...ices/#comments
I checked your code. All you want is just simple, normal rollovers of
images (of text, by the way, not even true images).
Using images to render text is a deprecated and non-recommendable web
design practice.
So, you do not need image maps (and so many of them) at all and you do
not need a form for your webpage. You misuse image map here. And all of
your image slicing is not helping: they increase number of http
requests: so they slow down rendering of webpage. Also, spacer.gif are
totally deprecated web design practice.
<tr>
<td>
<img src="images/spacer.gif" width="31" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="140" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="120" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="165" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="149" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="150" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="45" height="1" alt="" /></td>
</tr>
Resources for you in Polish:
ZawartoĹÄ Mozilla Developer Center http://developer.mozilla.org/pl/docs...C5%82%C3%B3wna http://mozillapl.org/forum/
Standardy WWW i Ĺşle dziaĹajÄ
ce strony
Tworzenie stron WWW
GĂŠrard
--
Using Web Standards in your Web Pages (Updated Dec. 2006) http://developer.mozilla.org/en/docs...your_Web_Pages
K. wrote :
Witam!
Napisalem taka oto funkcje:
function img_Pokaz(adres ,formName,hint_ img)
{
eval('document. '+formName+'.'+ hint_img+'.src = "'+adres+'" ');
}
i wplotlem go w znacznik img
<img src="images/Zareczyny.gif" width="165" height="50" alt=""
usemap="#Mapa_m enu_zareczyny" border="0" name="zareczyny "
onMouseOver="im g_Pokaz('images/Zareczyny_kolor .gif','form_glo wny','zareczyny ');"
onMouseOut="img _Pokaz('images/Zareczyny.gif', 'form_glowny',' zareczyny');" />
Problem w tym, ze na IE 7.0. dziala wszystko ok, a na Firefoxie niestety nie
podmieniaja sie gify i menu daje efekt menu statycznego.
Jak powinienem zmodyfikowac wiec funkcje img_Pokaz by dostosowac ja do
wszystkich przegladarek?
Z gory dzieki za posta
Pozdrawiam
M.
K., I examined your webpage
and I am absolutely sure that your webpage
- does not need image maps. Zero image map. None needed.
- does not need table or table layouts; just 3 centered <div>s
- does not need spacer.gif; Zero spacer.gif
- does not need javascript at all; no javascript functions; just an
:hover css rule for 5 links and that's it, that's all.
Gérard
--
Using Web Standards in your Web Pages (Updated Dec. 2006) http://developer.mozilla.org/en/docs...your_Web_Pages This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Laurent Compere |
last post by:
Hi all,
I try to make a logo fade in. I wrote the code below that is simple and
supposed to be compatible with IE6,Firefox and Netscape.
It works pretty well under IE6 but under Firefox and Netscape, I have the
same problem : It seems that the property MozOpacity doesn't want to update
itself though I cand read its value with the same object reference. Can
Anybody try to explain me why ? As a log, I sent several values on the
status bar...
|
by: phil-news-nospam |
last post by:
Why does SVG need a different tag than other images?
IMHO, SVG should be implemented as an image type just like any other image
type, allowing it to work with <img> tags, and ... here is the important
part ... also work with backgrounds in other tags.
I fail to see any wisdom in making SVG different than say PNG (of course
the implementation of the rendering code would obvious be different).
--
|
by: cbjewelz |
last post by:
Hey all.
So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical alignments and div widths are off. It's as if firefox has a different definition of a pixel than safari. Here is the url: http://theprize.chemouni.com/testing.php. When you select the Option from the pull down, the first part of the form appears. Then when...
|
by: 80s.arcade |
last post by:
Hi.
Please take a look at this page:
http://tinyurl.com/s2l8w
In IE6, putting the mouse on each of the two items highlights the word
in a blue (different image) and shows a tool tip. In Firefox(1.5.0.6),
nothing shows when mouse goes over it. Please view the source of that
simple page (with some JavaScript) to see if you know how I can get
this to look in Firefox like it does in IE?
|
by: tim |
last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus
in firefox. On my sub3 menus i have more than one line of text in some
places. firefox does not recognise that there is more than one line
and the text simply overlaps the sub-menus below it. I thought i had
got around this by placing empty 'spacers' like so;
oFoldMenu.make('sub3','')//spacer
unfortunately, i have just viewed the site in IExplorer and it has
added...
| |
by: davecph |
last post by:
I'm constructing a website with a layout created with div-tags. They have a fixed width, float left, and display inline. When one of the div's contain a select-element the right-most div floats down for no apparent reason, but when the select-elements are gone they all align as expected. No css apply to the select-elements.
image of prob.: http://sdc.novasol.com/site/nov/TMP/withSelectBoxes.gif
image of expected:...
|
by: McKirahan |
last post by:
Why does the following happen? How can it be suppressed?
Under Firefox, use the left-mouse button to drag any image
into the textarea and 52 copies of the image's URL appear!
<html>
<body>
<form>
<img src="http://www.google.com/intl/en_ALL/images/logo.gif">
<input type="reset">
|
by: littlealex |
last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS!
In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly?
http://geekarama.co.uk/new_home.html
here is the code for new_home.html and following that the CSS...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |