Jump to content

Buoka

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Buoka

  • Rank
    Newbie
  • Birthday 11/03/1959

Contact Methods

  • MSN
    tyegel@hotmail.co.uk
  • Website URL
    http://
  • ICQ
    0
  • Yahoo
    darslg

Profile Information

  • Location
    Pocklington, East Yorkshire
  • Interests
    Web Design, Javascript, SHTML, VBA

Previous Fields

  • Languages
    XHTML, Javascript (a little), VBA
  1. Buoka

    Scripting error

    Thanks so much Ingolme - I was so near yet so far lol. Ah well.Finally, this still fails in IE(7). I have narrowed it down (I think) to the spaces between words (or at least multiple words) in the WinName variable. Those with single word (e.g. 'Covershelf' and 'Traymate') work but not one other does (e.g. 'Tester Kit' and Cover Straps')What did I do wrong now?
  2. Buoka

    Scripting error

    UPDATE - works in Firefox - but absolutely no action in IE (7). Ideas?
  3. Buoka

    Scripting error

    Thanks Ingol, but somehow it still won't work properly.Here is the code in SpAc.js function SpAc(addr,WinName) {window.open(addr,WinName,'width=675,height=260');} The code in the <head> section reads: <title>Systemwash UK Ltd - Spas, Saunas, Gazebos and Lifestyle Products - Howden, East Yorkshire</title> <script src="SpAc.js" type="text/javascript"></script> </head> and the html reads: <input class="accs" type="image" src="Images/SpAc_PumpSub.jpg" alt="Nutool Submersible Pump" title="Nutool Submersible Pump" value="SpAc01" onclick="SpAc('Accs/SpAcPump.html', 'Nutool Submersible Pump').js" /> All of which seem to be what I should have and how you confirm it should be. Why then does it all fall down?
  4. Buoka

    Scripting error

    Changes made - thanks you very much again - still no working. What links this html to the .js file? How is that called?
  5. Buoka

    Scripting error

    Thanks very much for help. Seems I have my thick head on today as...I still get no action and a debug request. Debugger narrative is "object required".Current code in html is: <input class="accs" type="image" src="Images/SpAc_PumpSub.jpg" alt="Nutool Submersible Pump" title="Nutool Submersible Pump" value="SpAc01" onclick="SpAc('Accs/SpAcPump.html', 'Nutool Submersible Pump').js" /> SpAc.js (capitals as shown) is: function SpAc(addr,WinName) {window.open(addr,WinName,'width=675,height=260');}
  6. Buoka

    Scripting error

    Just to clarify, the code for the javascript in the header reads: <script type="text/javascript"><!--function SpAc(addr, WinName) {window.open(addr, WinName,'width=675,height=260');}//--></script>
  7. Buoka

    Scripting error

    I have tried to use the following with the javascript out in a .js file and with it in the <head> but in either case all I get is a call for debug.Can someone tell me where my code is wrong.The code calling the function is: <input class="accs" type="image" src="Images/SpAc_PumpSub.jpg" alt="Nutool Submersible Pump" title="Nutool Submersible Pump" value="SpAc01" onclick="SpAc('Accs/SpAc01.html').js" /> or <input class="accs" type="image" src="Images/SpAc_PumpSub.jpg" alt="Nutool Submersible Pump" title="Nutool Submersible Pump" value="SpAc01" onclick="SpAc('Accs/SpAc01.html')" /> The script in SpAc.js is: function SpAc(addr) {window.open(addr,'Spa Accessory','width=675,height=260');} The same code - unchanged completely - has been tried in the head thus: function SpAc(addr) {window.open(addr,'Spa Accessory','width=675,height=260'); } </head> Where does it all go pear-shaped?Thanks
  8. Buoka

    Function for 'pop-up' windows

    Thank you so much Ingolme!!!
  9. Buoka

    DocType conflict

    Thanks jlhaslip
  10. Buoka

    DocType conflict

    I am using HTML Tidy linked into FireFox to ensure my code remains clean. It is - apart from a DTD warning.The warning I receive is: and My code in head is <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > What can/must I do?
  11. I want/need to tidy up my xhtml.What I have at the moment are 90+ lines of script all similar to: <script type="text/javascript">function SpAc46(){window.open("Accs/SpAcCovershelf.html","windowname","height=260,width=675")}</script> in the head. Each of these (46 so far) is called by the click on an image thus: <input class="accs" type="image" src="Images/SpAc_Covershelf.jpg" alt="Covershelf" title="Covershelf" value="SpAc46" onclick="SpAc46()" /> What I really want is to move the 90+ lines of javascript out into one function that is very few lines. By this I mean that the image click calls the function (called, say, AccessoryCall) and passes a parameter (e.g. SpAc46). The function then opens SpAc46.html.Simple quick and clean.Can it be done? :)
  12. Buoka

    No Right Click

    Brilliant! thanks a bundle Jesh
  13. Buoka

    No Right Click

    Thanks Jesh.Errrrrrrr where should that code go and a brief explanation of what it does would be of great assistance as I am very new to Javascript.Thanks very much
  14. Buoka

    No Right Click

    Having had our pages "borrowed" by the right-click, view source syndrome, we wish to protect them a little in IE.The following code works a bit. The right click work at the top of the page but not the bottom 2/3. Why? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html> <head> <link rel="stylesheet" href="Style.css" type="text/css" media="screen" /> <title>Spa Showroom</title> <script type="text/javascript"> function disable() { if (event.button == 2) { alert("Sorry rightclick disabled on this page") } } </script> </head> <body class="spa2" onmousedown="disable()"> <br /><br /><br /><br /><br /> <table align="center" width="100%" cellspacing="50"> <tr align="center"> <td class="const">Welcome to our Spa Showroom</td> </tr> </table> </body></html> This code without the class="spa2" part works fully (in IE) on other pages.The class="spa2" in the Body really just adds a fixed picture background. H ere is that part of CSS in case it is relevant Body.spa2 { font-family: Arial, "Times New Roman", Sans-Serif; font-size: 10.5pt; background: #ffffff url('Images/Back_Spa2.jpg') no-repeat fixed center; background-attachment: fixed; color: #000000; text-align: justify; margin: .1in;} Can anyone help/advise please
  15. Buoka

    Caption Positioning

    Thanks Croatiankid - is it the same for IE7 as that is what I use when "forced" into IE? How to specity CSS2.0, please.Thanks againBuoka
×