Show hide layers works under IE, but only 'shows' all other div in Mozilla

Has anyone else encountered this problem?

I use PHP/MySQL/Javascript/CSS with Dreamweaver & ADDT Dreamweaver.

What I do:

Create a set with one hand, a card google and 9 photo thumbnails all which, once clicked raise their own div. hidden in IE, Safari and Google Chrome, it works very well. INE Mozilla and Netscape only every other div will appear.

The code for two of the elements:

CSS:

{#photo_main}
position: absolute;
left: 11px;
top: 287px;
Width: 568px;
height: 25px;
z index: 13;
visibility: hidden;
}

{#photo_1}
position: absolute;
left: 11px;
top: 287px;
Width: 568px;
height: 25px;
z index: 13;
visibility: hidden;
}


Dreamweaver ShowHide script

< script type = "text/javascript" >
<!--
function MM_findObj (n, d) {//v4.01
var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}
d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}
If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];
for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);
If (! x & & d.getElementById) x = d.getElementById (n); Return x;
}

function MM_callJS (jsStr) {//v2.0
return eval (jsStr)
}
function MM_showHideLayers() {//v9.0
var i, p, v, obj, args is MM_showHideLayers.arguments;
for (i = 0; i <(args.length-2); I += 3).
(document) if (getElementById & & ((obj = getElementById (args [i]))! = null)) {v = args [i + 2];
If (obj.style) {obj = obj.style; v = (v == 'show')?} "visible':(v=='hide') {?' hidden ': v;}"
obj. Visibility = v; }
}
->
< /script >


The Divs:

<!-'main' photo->
< div id = "photo_main" >

< h2 > <? PHP echo $row_rs_photos ['title'];? > < / h2 >
< div class = "rr_colleft" >
< p align = "center" > < img src = "media / <?" PHP echo $row_rs_photo_main ["rental_ID'];? > / <? PHP echo $row_rs_photo_main ['file'];? ">" / > < / p >
< p > <? PHP echo $row_rs_photo_main ["caption"];? > < / p >


< / div >


< span class = "pointer" onclick = "MM_showHideLayers ('photo_main',", 'hide') "> close this window </span > < / div >
< / div >


<!--> photo '1 '.
< div id = "picture_1" >

< h2 > <? PHP echo $row_rs_photo_1 ['title'];? > < / h2 >
< div class = "rr_colleft" >
< p align = "center" > < img src = "media / <?" PHP echo $row_rs_photo_1 ["rental_ID'];? > / <? PHP echo $row_rs_photo_1 ['file'];? ">" / > < / p >
< p > <? PHP echo $row_rs_photo_1 ["caption"];? > < / p >

< / div >

< div class = "rr_colleft" onfocus = "MM_showHideLayers ('photo_show',", 'hide') ">
< span class = "pointer" onclick = "MM_showHideLayers ('picture_1',", 'hide') "> close this window </span > < / div >

< / div >

Appellant the Divs

< img class = "pointer" src = "media / <?" PHP echo $row_rs_photo_main ["rental_ID'];? > / <? PHP echo $row_rs_photo_main ['file'];? ">" width = "300" onclick = "", "hide", "map_canvas", "," hidden e ', 'map', ","hide")" / > "

< img class = "pointer" src = "media / <?" PHP echo $row_rs_photo_tn ["rental_ID'];? > / <? PHP echo $row_rs_photo_tn ['file'];? ">" width = "90" onclick = "', 'hide',"map_canvas",", "hide", "card", ","hide","picture_1"," 'show') "/ >"

In this example, photo_main will not work, but picture_1 will work. Any thoughts?

Initially, I had the onclick event in an anchor tag. push the browser to the top of the page. still disrupts the flow of the page. I didn't want the page jumps all the time, so I removed the .  I didn't know I could use a tag without the href part - now that I know, I removed the onclick of the image tag.

I didn't do it the way you did or the other.  The upper part of the page thing is easily fixed in one of two ways:

1. the use

2. use a false return on the link, for example,

Either people would be much more suitable for this use, in my opinion.

I found the solution to my problem, I do not know why - if I remove all the comments I got me - it works fine.

Good point.  The reason why remove your comments worked, is that all your comments are poorly trained.  You can't do an HTML comment like this-

It must instead be like this-

Similar Questions

  • OLE1. CreateEmbed Bit_str, "Paint.Picture" works under Dos but does more when gave birth off the coast. How can I fix teachix?

    OLE1. CreateEmbed Bit_str, "Paint.Picture" works under Dos but does more when gave birth off the coast.  How can I fix teachix?  Using VB5 to obtain a bitmap for embeded in an Access database. This used to work perfectly, but gives an Error 31032 when the program is spawned off the coast.  It still works from a command prompt.  How I have the code around this, or what is the problem?  Help, please. Thank you

    Hi AllisonBlackmer,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:

    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

    Hope the helps of information.

  • Built an MSI that does not work under Vista but works under XP

    We have built a MSI file that does not work under Vista but works under XP. No errors occur in the installation.  Running the installation "as Administrator".  But the application does not start without errors.

    You'd better choose to post your question in the developer forum. You can try the MSDN forums below, but you should definitely provide more details when you do.

    MSDN forums - http://social.msdn.microsoft.com/Forums/en-US/categories MS - MVP - Elephant Boy computers - don't panic!

  • How to make a Flash swf file. start only after all other elements are on the DW page?

    Sorry if I'm posting in the wrong forum. I didn't know if I should be here or in the forum of Dreamweaver. Just trying to figure out how to make a Flash swf file. start only after all other elements on the page have been downloaded. Is that what you would do in Flash through publication settings, or this would be finished in Dreamweaver?

    You are welcome.  I just checked and there is an onLoad parameter you can use in the BODY tag to ignite a javascript function.  I hope that's what this implies, that it is.

  • DVR HDD does not work under Vista, but in XP

    How can I get Vista to use / play my DVR HDD...
    It works on XP but not on Vista.

    What is DVR HDD?
    What model of laptop do you have?

  • am a div in a site does not appear in firefox but present on all other browsers (chrome, safari, opera and Explorer), can anyone help?

    I'm developing a site and I used div tags by making the arrangements.
    all other tags div on the page shows but on an individual does not show.
    I gave all the divs a border with a red color, all other browsers (explorer, opera, chrome and safari) shows the divs with the colors, but firefox does not yet show the color red

    can you please explain how works this adblock, which is technically

    I'm not really sure, but after reading the development councils and the Firefox support for many years, I've seen this place ourselves, from time to time: "Announces" the letter string in a URL id or class name or CBC may assume of Add-ons for advertising correctly or incorrectly.

    I'm not a developer, but I can recommend joining the mozillaZine Web Development board as a useful resource.

  • Why my all-in-one printer HP Photosmart 4780 now only print all other lines of the document

    My printer was working fine two weeks ago and now he decided to print only all other lines and some lines that print also have a pale line through it runnung. I have Windows XP. I uninstalled and then reinstalled the printer but the problem is still there.

    This problem is now resolved. Again, I changed the black cartridge and now everything is ok. I threw the defective cartridge.

  • Why my MacBook Air only recognizes all other pages when I try to print pages?

    I have a MacBook Air. Recently, when I typed a letter page 6 pages and tried to print from files, print, it only showed that I had 3 pages, while in the Pages document, I got 6 pages. The computer would print only 3 pages on 6. I did have this problem in the past, most recently. I don't know what I can do about it. He seems not to recognize that all of the other pages. It is not my printer. That's what the MacBook Air shows when I select Print. Only 3 of the 6 pages, even pages shows all 6 pages.

    Any thoughts on how to solve this problem?

    Be more specific.

    It show 3 successive pages or only odd or even?

    If it is the latter which is a parameter in the dialog box print which may be saved as a preset.

    Peter

  • Layout does not not in IE but fine in all other browsers?

    Hello

    It I'm probably missing something very simple, but can anyone shed some light on as to why a coloumn keeps jumping in IE but works & looks like it should be in all other browsers.

    The link to the page in question is lower, I tried fixing the width and even rebuild the page but all without success.

    http://www.gecodesigns.com/test/touringsport/football-tours.html

    Thank you very much

    Alex

    First thing - all Web pages must have a doctype.  Yours doesn't.  Add-on which is compatible with the code you have already used on the page (it looks like HTML 4.01 Transitional).  This will prevent browsers render the page in quirks (a bad thing) mode.

    Second - do not use commas or spaces in the names of file/path:

    background-image: url (images/Touring%20Sport%20-%20Sports%20Tours,%20Schools%20Tours%20and%20Corporate%20To urs.jpg);

    Third - when you specify a font, do it as a family, not a single font.  In your case, a computer with no default Helvetica is Times New Roman, which is probably not what you want:

    . {Contact_Header}

    do-family: Helvetica;

    Fourth - justified text is not very good on the web and it is more difficult to read the text not justified:

    . {Main_Text}

    do-family: Helvetica;

    color: #666;

    text-align: justify;

    Finally, in addition to these things, wobbly code is the cause of your problems.  Here is the report of validation for this page - there are a lot of things out there that need to be addressed-

    http://validator.w3.org/check?URI=http%3A%2f%2Fwww.gecodesigns.com%2Ftest%2Ftouringsport%2 Ffootball-tours.html&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent= W3C_Validator%2F1.2

    Also, read this about the impact of the use of collar - and rowspans the way which you have in your layout tables-

    http://www.apptools.com/rants/spans.php

  • Flash not appearing not in IE 8, but appears in all other browsers

    Hello

    I inserted my flash swf using Dreamweaver CS4 file and it looks great and appears in all other browsers, including IE 7 and IE6, but when I try to view anything in IE8 does not appear, but a large white space. Can someone help me find a way to make it appear so in IE8? Here is the page that I have trouble with.

    If it is maybe a problem?

  • ADAPTER DOUBLE BAND ONLY SHOW THE 2 GHZ RANGE, HAVE LOST 5 GHZ BUT PRESENT ON ALL OTHER PCS

    I inadvertently "REMOVED" the recognition of 'network' of 5 ghz on a menu that allowed me to "remove unnecessary networks."  I thought I was doing the right thing, but deleted by mistake the 5 ghz. Now I just can't side 5 ghz of the card to show as an available network when I click available networks at the bottom right of my screen.

    My dual band router LInksys is certainly put 2 and 5 ghz because I can see them on other PCs in the House and my Iphone6. It's only the HP All In One which now lacks the recognition of 5 ghz.

    It was working fine before my despicable act. I could easily switch between 2 ghz or 5 ghz...

    I rebooted router and reset I can see the 'admin' menu for the router on this computer.  I restarted my HP. I tried to restore my pc soon, and no effect. It seems that somehow I just simply deleted a vital statement or turned a vital switch that prevent this receiver WiFi HP-receive adapter or by switching to the 5 ghz range and the value by default only the 2 ghz.

    My system details also show that it is a working adapter RALink 3290 80211 bgn

    Is there a way to turn this back on? How do I re - establish the 5 ghz network on this HP?

    Any help out there?

    George P

    You are the very welcome.

    That is right.  No 'a' doesn't = No 5 GHz.

    I can't explain why you thought you saw other 5 GHz networks on your PC.

    The only wireless networks that should be visible on your PC are only in the 2.4 GHz band, because it's all Ralink card in your model can see.

    You might be able to replace the card with a wireless card dual band but I can't say for sure.  Some PC have a BIOS lock that prevents users from installing a different wireless card.

    You would have to make sure your PC has two antennas connected to the current Ralink wireless card because all dual-band cards have at least two terminals of the antenna to connect to.

    I would say the best thing you can do would be to go to your local office supply store and pick up a wireless network adapter dual band USB external.

    They now power USB wireless adapters, so you can get one of these.

    You wouldn't have any compatibility or hardware issues with an external USB card and not worry about BIOS locks or the number of antennas inside your PC.

  • A key will work not (tilde), but only in one of my Windows 7 profiles

    I am running Windows 7 Home Premium (x 64) Service Pack 1 (build 7601).  My history of update said that everything has been installed.

    The tilde / single quote left-button (just below ESC on my keyboard) does not work in my regular profile - won't work in any program at all.

    But it works in the other profiles that I put in place.

    I tried three keyboards; It is not the keyboard.  I tried both wireless and USB.

    I tried to remove the device drivers by using Device Manager, and then restart.  Did not help.

    Any help?

    Dear Niranjan Manjhi,

    1. I tried to use the instructions in the link you provided 'fix a corrupted user profile' which specifically stated that the profile contains settings "funds of screen, screen savers, pointer preferences, sound settings and other features" would be transferred to my new profile if I followed the instructions.  However, none of my desktop settings imported into the new profile, such as the wallpaper, the items on my desk and the changes in my menu start.  So, I tried a different approach (described below) first and foremost try to rebuild my profile.

    2. at the end of the day, I found the problem, it's * not * a corrupt user profile. The problem was a setting in the control panel / region and languages / keyboards and languages.  (I went to this setting as a general search on the internet revealed that the community of players has had some problems with the tilde/grave key.)

    Under the button 'Change keyboard', I did the following.

    one) by the suggestion players, under 'Général' community, removed keyboard "Us - International", leaving only "keyboard = US" and "Other = Correction of ink" (this last I learned is for my tablet of entry).  This change has not fixed my problem himself, even after a reboot.  But I left it like that. Then next...

    (b) under 'Advanced settings key' to 'To the English', I used "Change Key Sequence," uncheck "Enable Key Sequence, which had been fixed for 'Ctrl-Shift' + 'Serious'.  However, neither this change has fixed my problem himself, even after a reboot.  Then I tried then...

    (c) under 'Advanced settings key' for "Between the input languages", I used 'Change key Sequence' to change the "switch Keyboard Layout" of "Accent Grave (') to"All Unassigned".»  [I left ' switch an input language "to"Left Alt + shift."]  THIS CHANGE CORRECTS MY PROBLEM.

    I would like to mention that the manufacturer of keyboard for my Unified Wireless keyboard and mouse was kind kindness to send me a whole new set, in the hope that it could solve my problem, even if it was not a hardware problem.

  • I imported an EPS layered file in FrameMaker, but ONLY the EPS image appears in the PDF file. How to do everything to appear?

    I imported a file .eps (a barcode) in FrameMaker and found that the omitted PDF everyting but the .eps image.  How can I get FrameMaker to recognize the text and images in the file FM, as well as the image of layered .eps file in the output PDF file? To test this, I also converted the .eps file (in PhotoShop) for a TIFF, JPG and GIF, PSD and imported of each in the doc of FrameMaker and created a PDF file.

    When I imported the FM and PDFd .psd file, all of the text and images of the file FM appeared, but the bar code has low resolution.

    When I imported the TIFF records in FM and PDFd, nothing appears in the PDF file except the barcode image and the text block, to which it is linked. The bar code has low resolution.

    With a JPG image, everything appears in the PDF but the barcode has low resolution.

    With a GIF image, it appears in the PDF, but t barcode a low-resolution.

    First thing you should try is to create a PDF file of the EPS file using Acrobat only. If it does not come out as expected (in the PDF file), then you know exactly where the problem is. Create a PDF file of the EPS in Photoshop is not a good test.

    You also need to update your version of FM12 - you have a patch behind.

  • CS4 serial number does not work under tiger / but work in snowleopard

    Hello

    I have a G5 and a MAC BOOK pro.

    1. I bought the G5 and CS2

    2. I purchased the CS4 update / both were running on the machine

    3. I bought a MAC BOOK PRO / I have uninstall / disable / delete CS4 of G5 and install in my MAC BOOK PRO

    4. I bought CS6 uninstall CS4 of MACBOOK

    5. I am trying to reinstall CS4 on my G5 Tiger / it does not / but works to the MACBOOK

    So, if I disable / uninstall and delete

    What will happen?

    Thank you very much!!!

    programs may not install or run if there is a failure of your system to meet the specifications (here is cs4 program file, system requirements:) CS4 Point product), but the serial numbers don't pass/fail based on the specifications of the system.

  • How to hide rejected all images showing all others?

    I want to set the filter to show only the images not classified and evaluated so that rejected images disappear from sight as soon as I hit 'X' and move to the next image.  So I want to spend my scrap to make sure that they are all losers before permanently delete, and I won't see them again until I do it.  I can view a star or more, but I can't figure out how to view unrated or more surely it's a username and not poorly designed filtering mistake.

    DLS

    I think you're getting confused between the flags and ratings. "Release" is a flag, so when you have your images all together in the grid, set the flag to 'Flagged' and 'Unflagged' attributes (click on the icons of first two indicator)... This will leave all the images in the grid, but as soon as you press 'X' to reject one it will disappear from the grid as it no longer meets the filter criteria.

    Then, change the attribute rejected only Flag, see rejects it. The choice of status of flag are toggle power switch, so you can click on each of the three... two first elbow "Pavilion" and "Unflagged" off and the last of them turns "declined".

Maybe you are looking for