473,387 Members | 1,464 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,387 software developers and data experts.

need help in fitting code of buttons of website to all browsers

hi,
I need help in fitting code of buttons of website to all browsers (right now the code works only for explorer), can you tell me what i need to add to the code for the option of chrome/fire fox users enter my website ?
this the code of the buttons:

Expand|Select|Wrap|Line Numbers
  1. <PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="BtnOver()" />
  2. <PUBLIC:ATTACH EVENT="onmouseout"  ONEVENT="BtnOut()" />
  3. <PUBLIC:ATTACH EVENT="onclick"  ONEVENT="BtnClick()" />
  4. <PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="start();" />
  5.  
  6. <PUBLIC:PROPERTY NAME="child" />
  7.  
  8. <SCRIPT LANGUAGE="JScript">
  9. var object_not_done = true;
  10.  
  11. function start(){
  12.     object_not_done = false;
  13. }
  14.  
  15. function BtnOver(){
  16.     if(object_not_done) return;
  17.     this.style.cursor = 'hand';
  18.     this.src = this.src.replace('.gif','-over.gif');
  19. }
  20.  
  21. function BtnOut(){
  22.     if(object_not_done) return;
  23.     this.style.cursor = 'default';
  24.     this.src = this.src.replace('-over','');
  25. }
  26.  
  27. function BtnClick(){
  28.     if ( this.name == "contactus" || this.name == "ournetwork" || this.name == "jobs" ) {
  29.        window.location = "http://www.iimba.org.il/" + this.name + ".asp";
  30.     } else {
  31.         window.location = "http://www.iimba.org.il/" + this.name + ".asp";
  32.     }
  33. }
  34.  
  35. </SCRIPT>
  36.  
thank you!
May 6 '10 #1
1 1205
gits
5,390 Expert Mod 4TB
what do you mean with 'not working'? ... the style of the cursor should be pointer instead of hand ...

kind regards
May 7 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ali | last post by:
I am in great need of code that will make a dome. I would like the inputs to be similar to that of the sphere. ie: pos=(x0, y0, z0) radius = R color = (r,g,b) etc. I am using VPython of...
1
by: Cibulya Dmitriy | last post by:
Hi All, I want to catch the next MSSQL error in my SQL code with following continue calculations Server: Msg 17, Level 16, State 1, Line 1 SQL Server does not exist or access denied.
34
by: Mark Kamoski | last post by:
Hi-- Please help. I need a code sample for bubble sort. Thank you. --Mark
2
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for exchange sort. Thank you. --Mark
2
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for insertion sort. Thank you. --Mark
2
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for merge sort. Thank you. --Mark
2
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for quick sort. Thank you. --Mark
2
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for heap sort. Thank you. --Mark
1
by: Riyadh Hossain | last post by:
I am developing USPS shipping API for my site. All the work is going on testing phase. My site uses PHP/MySQL. Now I am working on USPS tracking/confirm. I can send request and get responses from...
1
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
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...
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
jinu1996
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...

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.