Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by SmokingMan

  1. I'm using JS because the "target" attribute has been deprecated. It may still work in all browsers, but it doesn't validate as XHTML Strict. This script will open a slideshow and I just want the window large enough to contain the show, so I have to control how the window displays.
  2. I stand corrected. I have Opera, but only use it to view my pages to be sure they render correctly
  3. Well I suppose the good news would be that most people still use IE (although I don't know why), so they will still be able to see the custom scrollbars. The rest of us will be looking at standard chrome
  4. I'm assuming that I still place the URL to be opened in the href attribute?
  5. I want to use the .open() method to open new windows depending on the link clicked by the user. How do I change the URL parameter in the method depending on the link clicked, or do I need to set up a separate function for each link? I would think there would have to be a way to use one function and modify it for each link as needed. Or maybe use an if...else structure for the links?I'm open to suggestions.
  6. I have buttons used for onmouseover, onmouseout, & onclick events. The onclick event does not work. There is an onclick event in the <a> tag that works, but the one in the <img> tag does not. Since they are in two different tags, I thought it would work. But since the <img> tag is in the <a> tag, would that prevent the onclick event in the <img> tag from working? Here's the link to the page.I can live without the 3rd event, but I don't want to if I don't have to
  7. SmokingMan


    I'm not aware of any way to check the status of a media file using the <embed> tag. Here's a link that gives you all of the info on the tag, but while it may work in most browsers (for now), it's not supported by the W3C standards. They recommend using the <object> tag. You can go here for more info on that.
  8. Got it!!I had to add a width style to the top <td> in the menu so IE knew what to do. Of course FF & Opera understood with the cols attribute in the <table> tag, but it's not like this is a surprise.Thanks Bill for making simple coding like this such an adventure. I'd hate to think how boring and mundane it would be if everyone supported the same standards.
  9. Okay...I've got the PHP link thingy working now across IE & FF. The only real problem now, is in FF the top level cells are of equal size, but not in IE. There has to be something real simple I'm missing and will be embarrassed about once it's pointed out, but right now it's got me stumped.I have the table tag as <table cols="4" border="0">. Like I said, the cells are of equal size in FF, but not in IE.
  10. It works fine. I know this isn't the PHP board, but it looks like that's where my problem is. Do I need to save the file to be included with a .php extension? The file it's written to has a .php extension, but the file being included has a .html extension. I also don't have any PHP code on the menu page, only the pages that call it. Could that be my problem?But some of the menu does work, just not the entire thing, and it's formatted differently in IE than in FF. So I'm assuming the path is correct in all of the pages. It's got me scratching my head.
  11. Okay, I changed all of the CSS back to the way it was without the images, and now it works fine...kinda. In IE the bar's cell sizes are unequal on the top level but in FF they're fine. Also, when you go to the only live link that is in the menu so far, the <br />'s and sub menu don't show up. I think that has something to do with PHP though. But I don't know PHP so I'll need someone to help me with that. Does the file being included with PHP need to be in the same directory? But then why would part of the formatting work and not all of it?
  12. The only difference is that I am now using a PHP "require" to insert the menu. I plan on using this same menu across all pages of the site and wanted to use PHP to insert it in each page. That way I only have one file to modify instead of several when a change needs to be made. I may just have to go ahead and hard code it into each page and then modify every page when I need to change something
  13. Okay, I have the menu working really nice in FF & Opera, but...well...then there's IE. The sub menus don't display in the right place, they're offset too far to the right, and the images I use for backgrounds in the sub menu take time to display, if they do at all. Sometimes they don't and all you get is the black background. Other than requiring everyone visiting my site to use anything but IE, how do I fix this?Here's the link to the page, and here's the link to the CSS for the menu bar.
  14. That worked. Don't ask me what I was thinking with the 12.5% margin, I'll claim mad cow on that one
  15. I'm working through a W3C example of a drop down menu, and I have a question on the positioning of the hidden (or drop down) menu. The style uses absolute positioning, and when displayed, offsets to the right from the parent menu. I've tried relative positioning and using margin-left with negative numbers along with the absolute positioning, and still can't get the sub menu to move to the left. The menu works as is, but I would like to know how to adjust the positioning of the hidden drop down in case the page would require it.Here's the code I'm playing with: <style>body { font-family:arial; }table { font-size:80%; background:black; width: 75%; margin-left: 12.5%; }td.menu { background:lightblue; width: 150px; }table.menu { font-size:90%; width: 150px; position:absolute; visibility:hidden; }a { color:black; text-decoration:none; font:bold; }a:hover { color:#606060; }</style><script type="text/javascript">function showmenu(elmnt) { document.getElementById(elmnt).style.visibility="visible"}function hidemenu(elmnt) { document.getElementById(elmnt).style.visibility="hidden"}</script></head><body><h3>Drop down menu</h3><table> <tr bgcolor="#FF8080"> <td onmouseover="showmenu('tutorials')" onmouseout="hidemenu('tutorials')"> <a href="/default.asp">Tutorials</a><br /> <table class="menu" id="tutorials"> <tr><td class="menu"><a href="/html/default.asp">HTML</a></td></tr> <tr><td class="menu"><a href="/xhtml/default.asp">XHTML</a></td></tr> <tr><td class="menu"><a href="/css/default.asp">CSS</a></td></tr> <tr><td class="menu"><a href="/xml/default.asp">XML</a></td></tr> <tr><td class="menu"><a href="/xsl/default.asp">XSL</a></td></tr> </table> </td> <td onmouseover="showmenu('scripting')" onmouseout="hidemenu('scripting')"> <a href="/default.asp">Scripting</a><br /> <table class="menu" id="scripting"> <tr><td class="menu"><a href="/js/default.asp">JavaScript</a></td></tr> <tr><td class="menu"><a href="/vbscript/default.asp">VBScript</a></td></tr> <tr><td class="menu"><a href="default.asp">DHTML</a></td></tr> <tr><td class="menu"><a href="/asp/default.asp">ASP</a></td></tr> <tr><td class="menu"><a href="/ado/default.asp">ADO</a></td></tr> </table> </td> <td onmouseover="showmenu('validation')" onmouseout="hidemenu('validation')"> <a href="/site/site_validate.asp">Validation</a><br /> <table class="menu" id="validation"> <tr><td class="menu"><a href="/site/site_validate.asp">Validate HTML</a></td></tr> <tr><td class="menu"><a href="/site/site_validate.asp">Validate XHTML</a></td></tr> <tr><td class="menu"><a href="/site/site_validate.asp">Validate CSS</a></td></tr> <tr><td class="menu"><a href="/site/site_validate.asp">Validate XML</a></td></tr> <tr><td class="menu"><a href="/site/site_validate.asp">Validate WML</a></td></tr> </table> </td> </tr></table></body></html> Any suggestions?I should clarify, displays different in IE than in FF (what a surprise)!
  16. With a little customization, this should work fine. I'm not exactly sure how you would do any more sub levels than the one in the menu, but this should do the job for what I'm doing right now. I suppose you would need to do some relative postioning for any more levels. But not right now. That can be a project for a future site
  17. You know...I looked forever for a menu like this that I could go through and understand, and spruce it up with my own graphics. I looked all over W3C, and with Google, and couldn't find what I was looking for, at least nothing straight forward and fairly easy to understand. They must have kept this hidden from me for reasons unknown But this should give me the basic idea as to how to make this menu do what I want.Thanks
  18. Yeah, go ahead and pop my balloon, rain on my parade, yada yada yada...
  19. I guess I didn't quite clarify. There is no special message in FF or Opera, the menu just works correctly. But in IE there is a flicker every time you hover over any of the sub menu links, and the status bar message only appears for a brief moment, then disappears. When the menu buttons are flickering, I finally caught the status bar message showing that it's downloading the top button background image when you hover over the sub menu links.Now I don't know why it would want to download the top level background images when you hover over the sub menu links. But would using an array to precache the images work to at least help with the delay? That would take care of one headache.
  20. Okay, go to here and hover over the menu bar using IE (don't use FF or Opera, they work correctly). While you're doing that, look at the status bar for the messages. Why does the message disappear at the same time the background image is changing, without having to move the mouse? Something isn't right here
  21. I try first to get my pages to validate, and then to render correctly in FF & Opera, then after getting over the shock of looking at it in IE, do whatever work arounds needed to make it work in IE.Are you listening Bill?!!
  22. Well...the first example still didn't work, but the second one does. I don't understand why all of the problems with this page when I use it on other pages with no problem. Oh well I do thank you for your help and patience.
  23. I have removed the apostrophe and tried the "\'" instead, and neither work. I still get the entire URL path instead of the message. Here's a link to the page so you can see the source.
  24. I have a simple script to display the title of the link in the status bar instead of the URL. It's just a cleaner way for people to see where they're linking to. It works on other sites but for some reason not on this particular one. The only real difference is that this site's pages have .php extensions since I use PHP to include a menu.Here's the link code: <a class="gallery-link" href="missy-slideshow.html" onmouseout="return addressMsg('')" onmouseover="return addressMsg('Missy's Slideshow')">here</a> And here's the script: function addressMsg(addrMsg) { window.status = addrMsg; return true;} It should work. Is there something I'm missing here? I've looked at it for so long now I'm going cross-eyed
  25. I am currently using a pure CSS menu that works fine in FF & Opera, but it has glitches in IE (imagine that). I thought that using a JS menu would help since it should work cross-platform. I've been told the menu looks okay in IE and that most people probably wouldn't even notice, but I do and I want it to work the same no matter what browser is being used. I know I'm being picky, but I don't think having a menu act the same no matter what browser is being used is too much to ask. Are you listening Bill?!
  • Create New...