I have the file calendar.html, it works fine in IE &; crome but in firefox the hyperlinks are not active... can someone help me please...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Calendar</title> <script language="JavaScript"> var dDate = new Date(); var dCurMonth = dDate.getMonth(); var dCurDayOfMonth = dDate.getDate(); var dCurYear = dDate.getFullYear(); var objPrevElement = new Object(); var objPrevCalDateText = new Object(); function fToggleColor(myElement) { var toggleColor = "#0000ff"; if (myElement.id == "calDateText") { if (myElement.color == toggleColor) { if (myElement.innerText == dCurDayOfMonth && frmCalendar.tbSelYear.value == dCurYear && frmCalendar.tbSelMonth.value == dCurMonth+1) { myElement.color = "red"; } else { myElement.color = ""; } } else { myElement.color = toggleColor; } } else if (myElement.id == "calCell") { for (var i in myElement.children) { if (myElement.children[i].id == "calDateText") { if (myElement.children[i].color == toggleColor) { if (myElement.innerText == dCurDayOfMonth && frmCalendar.tbSelYear.value == dCurYear && frmCalendar.tbSelMonth.value == dCurMonth+1) { myElement.children[i].color = "red"; } else { myElement.children[i].color = ""; } } else { myElement.children[i].color = toggleColor; } } } } } function fSetSelectedDay(myElement){ if (myElement.id == "calCell") { if (!isNaN(parseInt(myElement.children["calDateText"].innerText))) { myElement.background = "images/cal_cell_down.gif"; objPrevElement.background = "images/cal_cell_up.gif"; document.all.calSelectedDate.value = parseInt(myElement.children["calDateText"].innerText); objPrevElement = myElement; if(frmCalendar.tbSelMonth.value < 10) sMonth = "0" + frmCalendar.tbSelMonth.value else sMonth = frmCalendar.tbSelMonth.value if(myElement.children["calDateText"].innerText < 10) sDay = "0" + myElement.children["calDateText"].innerText else sDay = myElement.children["calDateText"].innerText window.returnValue = sMonth + sDay + frmCalendar.tbSelYear.value window.close(); } } } function fGetDaysInMonth(iMonth, iYear) { var dPrevDate = new Date(iYear, iMonth, 0); return dPrevDate.getDate(); } function fBuildCal(iYear, iMonth, iDayStyle) { var aMonth = new Array(); aMonth[0] = new Array(7); aMonth[1] = new Array(7); aMonth[2] = new Array(7); aMonth[3] = new Array(7); aMonth[4] = new Array(7); aMonth[5] = new Array(7); aMonth[6] = new Array(7); var dCalDate = new Date(iYear, iMonth-1, 1); var iDayOfFirst = dCalDate.getDay(); var iDaysInMonth = fGetDaysInMonth(iMonth, iYear); var iVarDate = 1; var i, d, w; if (iDayStyle == 2) { aMonth[0][0] = "Sunday"; aMonth[0][1] = "Monday"; aMonth[0][2] = "Tuesday"; aMonth[0][3] = "Wednesday"; aMonth[0][4] = "Thursday"; aMonth[0][5] = "Friday"; aMonth[0][6] = "Saturday"; } else if (iDayStyle == 1) { aMonth[0][0] = "Sun"; aMonth[0][1] = "Mon"; aMonth[0][2] = "Tue"; aMonth[0][3] = "Wed"; aMonth[0][4] = "Thu"; aMonth[0][5] = "Fri"; aMonth[0][6] = "Sat"; } else { aMonth[0][0] = "Su"; aMonth[0][1] = "Mo"; aMonth[0][2] = "Tu"; aMonth[0][3] = "We"; aMonth[0][4] = "Th"; aMonth[0][5] = "Fr"; aMonth[0][6] = "Sa"; } for (d = iDayOfFirst; d < 7; d++) { aMonth[1][d] = iVarDate; iVarDate++; } for (w = 2; w < 7; w++) { for (d = 0; d < 7; d++) { if (iVarDate <= iDaysInMonth) { aMonth[w][d] = iVarDate; iVarDate++; } } } return aMonth; } function fDrawCal(iYear, iMonth, iCellWidth, iCellHeight, sDateTextSize, sDateTextWeight, iDayStyle) { var myMonth; myMonth = fBuildCal(iYear, iMonth, iDayStyle); document.write("<table border='0' width='280' cellspacing='0' bordercolorlight='#808080' bordercolordark='#808080'>") document.write("<tr>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][0] + "</td>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][1] + "</td>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][2] + "</td>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][3] + "</td>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][4] + "</td>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][5] + "</td>"); document.write("<td align='center' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][6] + "</td>"); document.write("</tr>"); for (w = 1; w < 7; w++) { document.write("<tr>") for (d = 0; d < 7; d++) { document.write("<td background='images/cal_cell_up.gif' align='left' valign='top' width='" + iCellWidth + "' height='" + iCellHeight + "' id=calCell style='CURSOR:Hand' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick='fSetSelectedDay(this)'>"); if (!isNaN(myMonth[w][d])) { document.write("<font id=calDateText onMouseOver='fToggleColor(this)' style='CURSOR:Hand;FONT-FAMILY:Verdana;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOut='fToggleColor(this)' onclick='fSetSelectedDay(this)'>" + myMonth[w][d] + "</font>"); } else { document.write("<font id=calDateText onMouseOver='fToggleColor(this)' style='CURSOR:Hand;FONT-FAMILY:Verdana;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOut='fToggleColor(this)' onclick='fSetSelectedDay(this)'> </font>"); } document.write("</td>") } document.write("</tr>"); } document.write("</table>") } function fUpdateCal(iYear, iMonth) { myMonth = fBuildCal(iYear, iMonth); objPrevElement.bgColor = ""; document.all.calSelectedDate.value = ""; objPrevCalDateText.color = "" for (w = 1; w < 7; w++) { for (d = 0; d < 7; d++) { if (!isNaN(myMonth[w][d])) { if (myMonth[w][d] == dCurDayOfMonth && iYear == dCurYear && iMonth == dCurMonth+1){ calDateText[((7*w)+d)-7].color = "red" objPrevCalDateText = calDateText[((7*w)+d)-7] } calDateText[((7*w)+d)-7].innerText = myMonth[w][d]; } else { calDateText[((7*w)+d)-7].innerText = ""; } } } } </script> <script id=clientEventHandlersJS language=javascript> <!-- function Select1_onblur() { } //--> </script> </head> <body topmargin="0" leftmargin="0"> <script language="JavaScript" for="window" event="onload"> var dCurDate = new Date(); frmCalendar.tbSelMonth.options[dCurDate.getMonth()].selected = true; for (i = 0; i < frmCalendar.tbSelYear.length; i++) if (frmCalendar.tbSelYear.options[i].value == dCurDate.getFullYear()) frmCalendar.tbSelYear.options[i].selected = true; </script> <form name="frmCalendar" method="post" action=""> <input type="hidden" name="calSelectedDate"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#c0c0c0"> <tr> <td> <select name="tbSelMonth" onchange='fUpdateCal(frmCalendar.tbSelYear.value, frmCalendar.tbSelMonth.value)' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT:normal' id="Select1" onblur="return Select1_onblur()"> <option value="1" selected>January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> <select name="tbSelYear" onchange='fUpdateCal(frmCalendar.tbSelYear.value, frmCalendar.tbSelMonth.value)' style='FONT-FAMILY:Verdana;FONT-SIZE:12px;FONT-WEIGHT:normal'> <option value="1998">1998</option> <option value="1999">1999</option> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012" selected>2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> </select> </td> </tr> <tr> <td></td> </tr> <tr> <td> <script language="JavaScript"> <!-- --> var dCurDate = new Date(); fDrawCal(dCurDate.getFullYear(), dCurDate.getMonth()+1, 30, 30, "12px", "normal", 1); fUpdateCal(dCurYear, dCurMonth+1) </script> </td> </tr> </table> </form> </body> </html>
At least, you will need to use style.color = "#0000ff" instead of color.
Document.all is not in Firefox, so use getElementById() to deal with specific items.
A good place to ask for advice on web development is to the 'Web Standards Development/evangelism' MozillaZine forum.
Aid to this forum are better informed on issues related to web development.
You must register on MozillaZine forum site to post in this forum.
Tags: Firefox
Similar Questions
-
I have AutoCAD 2002, a 32-bit program, I can't install it on my computer which has Windows Vista Home - Premium 64 bit OS.
Can someone help me, please?Hi JohnMcLarnon,
Welcome to the community Microsoft and thanks for posting the question.
According to the description, it looks like you can not install AutoCAD 2002, he would be grateful if you can answer this question in order to help you further.
1. what happens when you try to install, summers - get you any error message or error code?
2 is the issue limited only during installation AutoCAD?
3. have you made changes on the computer before this problem?
I suggest you to see the steps in the following Microsoft article and check if it helps.
Solve problems with programs that cannot be installed or uninstalled: http://support.microsoft.com/mats/Program_Install_and_Uninstall?wa=wsignin1.0
Troubleshoot installing or uninstalling programs: http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-installing-or-uninstalling-programs
Note: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry
If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.
-
My PC which I am the administrator does not accept my password. I have tried everything that he and am desperate. I think maybe that Microsoft made this for my PC when some PC hacked my Microsoft Hotmail Account outside and sending spam him. I thought that the problem was solved when I informed the technical support by e-mail to stop the account all together. All I want is to be able to reuse my labtop. Please any help will be sent by God!
Sincerely,
Steve J Malysz III M.S.
There are a lot of options built into Windows to help you out of this situation:- Restart the computer with your Windows repair CD, then use system restore to set Windows in a few days (only works if you have recently changed the password).
- Log on to your account admin to spare, and then reset the password for your existing account (works only if you set up an alternative admin account).
- Log in as administrator mode without failure, then reset the password for your existing account (the password is usually empty).
- Insert your flash drive USB with the password key file (only works if you have taken the time to create such a key file).
- Use the password indicator (works only if you have created a hint and if it's good enough to allow you to guess the password)
- Check your paper files (works only if you threw down the password somewhere)
-
I need to uninstall the iTunes 12.2.0.145 in Windows 7-32 bit, but I don't have the installation of this version files. Can someone help me, please?
The problem lies in a PC with Windows 7 32 bit
For general advice, see troubleshooting problems with iTunes for Windows updates.
The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.
More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.
Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.
TT2
-
I have problem with my iphone 5 has no 4g 3g only. in Sweden in the works of 4g Malmö... can someone help me please...
Where did you buy this phone? 4G has already worked on this phone? Whatever the carrier said when contacting you? Have what troubleshooting you tried?
-
Its me took 3 days to the presenter bought, I finally got it
After that there's now work I talked to 3 people online support person can help
It sounds like a joke at this stage
Can someone help me please
His request than me for the serial numbers, but I buy per month
Hello
This could be due to a host file incorrectly configured as hosts of operating system files map the hostnames to IP addresses. A misconfigured hosts file can affect the ability of your computer to connect to the Adobe activation servers.
Follow these steps to see if there is a problem with your hosts file and if necessary
Please follow the steps below:
- Click Start > run, type % systemroot % \system32\drivers\etcand press enter.
- Right-click on the hosts file, and then select Open. Select the application Notepad open the hosts file.
- Save the hosts file: choose file > record under, save the file as hosts.backup, and then click OK.
- Look for the hosts file for entries that refer to adobe (for example, 127.0.0.1 activate.adobe.com, or 127.0.0.1 lm.licensing.adobe.com) and delete these entries.
- Save and close the file.
- Restart your computer and try to turn it on again.
Kind regards
Sharad
-
I downloaded 4 FF and now 5 and nor with my screen looks nothing like it says on the page of FF. For example, I don't have the orange FF tab in the upper left corner, I have no "PIN as app" option, nor do I view. Can someone help me please?
To get the orange FF tab, go to view > toolbars > menu bar. This should uncheck the menu bar giving you the orange button.
Panorama is a box made of 4 gray rectangles which should be on the far right, if not once you activate the orange FF tab, right click anywhere on a toolbar that doesn't has nothing to this topic, and you should get a menu with a list of your toolbars that you can check and uncheck the box. Come on down to personalize everything down and it will open a window with all your buttons. Find groups of panorama/tab button and drag it to the toolbar of your choice.
to pin a tab as an app, right-click on it; It is an option in the context menu.
-
l accidentally changed the info in the upper left corner of my pic in Lightroom to display the parameters of the camera and prefer would be - it to show pixels. Can someone help me please change it back? l have no idea what l knocked on
to change to the 1st place.
Hi VickeyD,
Please 'I' on your keyboard again.
You can change these settings in view > view options
Concerning
Assani
-
Hi team, I have a question about Ad lightroom, can someone help me please?
Hi team, I have a question about Ad lightroom, can someone help me please?
I'm sure that you need to access the original to "Edit in photoshop" NEF files Smart insights are not good enough for that.
If you do just adjustment and cropping, you don't need photoshop.
-
I need to download and improve the tools of the DPS. My version of InDesign CC 2015 isn't tools DPS that I need. I just upgraded to CC 2014 and found that (generator of folio) tools are missing. Can someone help me?
I have a new MacBook Pro 15 "with all of the memory/speed I need to work on folios. I am developing several folios.
Downloads fail in case of success or not, do not load the Folio Builder I'm use to.
Paul
Post edited by: Neil Enns, edited to remove personal contact information.
DPS is not supported in InDesign CC 2015. You will need to install InDesign 2014 CC-by-side to use DPS tools, that you have used. See download and install Adobe Creative cloud applications to learn how to install the previous version of InDesign.
Digital Publishing Solution (aka DPS 2015) is supported in InDesign CC 2015.
Neil
-
I have my 5 factory reset iPhone, now I can't set up my iPhone because it must be enabled, and I don't have a sim card to make. Is there a way I can install and use my iPhone without needing to be activated? Can someone help me please?
To skip the activation of sim card, you can use iTunes if you have a CDMA iPhone. However, if you have a GSM model you will need to insert a sim card to activate your iPhone (it can even be used/inactive). Here is an article that will help you determine if your iPhone is GSM or CDMA: http://osxdaily.com/2012/11/15/determine-iphone-gsm-or-cdma/
-
I just bought an update of Windows Starter7 Windows Home PREMIUM 7 I can't find the upgrade button. Can someone help me please
If you have purchased the upgrade using Express upgrade, the product key should have emailed to your account you used to register for the upgrade.
Also:
Find your key product if your purchase of Microsoft Store:
http://store.Microsoft.com/Help/FAQ?Err=T2#AT2Contact the Microsoft store:
US: http://www.store.microsoft.com/Help/Contact-Us
1-877-696-7786
Canada: https://www.microsoftstore.ca/shop/en-CA/Contact-UsMicrosoft:
Why should I use my Windows Live account or create a new one?
Using your existing Windows Live account, or create a new account will give you access to your key product at any time online in the future. It is important to use an account and a password which you are familiar with to allow you to get easy access to your information and to receive the confirmation e-mail which will include your product key.
Will send me you a confirmation email with my product key?
Yes. An e-mail containing your product key will be sent to the e-mail address associated with your Windows Live ID account or e-mail address you provided if you ignored the account configuration. Note: If you use an email tool or spam blocker spam filter, be sure that you can receive e-mail messages from microsoft.com.
What happens if I lose my product key?
If you lose your product key, you can return to
www.Windows7.com/GetKey and sign in using the "Sign In" link in the upper right of the page. This will allow to recover your product key if you have established your account with your Windows Live ID. If you do not configure a Windows Live ID account initially there is no record of your online product key. Check your e-mail since it is the only trace of your product key.
-
Hello, I agree with creative cloud and log, but I can't download the full version just the test version? Why? Someone help me please.
Hi Bruno.
Please check the link and try:
https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html
Let me know if this helped!
See you soon!
Chirag
-
Can someone help me please how to insert a digital signature? When I open a PDF file, I don't see an option to digitally sign. Thank you in advance!
Hello
Please visit the following link to see how to digitally sign a PDF document.
How to apply a digital signature in Adobe Reader (Acrobat Reader) ms
Concerning
Sukrit diallo
-
When I try to install Adobe Creative Cloud stops, stops at halfway of the installation point and closes. (The download is also very slow) can someone help me please? Thank you!
Please, try the following steps:
- Uninstall Adobe CC (https://helpx.adobe.com/creative-cloud/help/uninstall-creative-cloud-desktop-app.html)
- Reboot the computer.
- Install the latest Adobe Creative cloud version from the link: CC help | Creative cloud desktop
Guinot
Maybe you are looking for
-
Hello. Could someone help me? In the last 2 weeks, there no notification in my account when I receive a new message. I tried to fixed by the tools but it seemes that there is no problem. I f have a new message, I have to go in my contacts and check o
-
Cannot distribute apple music videos from my iphone to apple tv (3rd generation)
Hi I'm trying to stream video to my iphone 5 to apple tv apple's music (3rd generation), but the video does not get air-played on my TV. Instead, the video continues to play on my iphone and the sound is Airjoue to my HD TV (via apple TV). Is there s
-
I can't play my DVD and when the screen is not complete
-
HP TouchSmart 600-1120
-
Windows Vista reinstall after a full format of the HARD drive!
My younger brother accidentally formatted the entire hard drive he played in dual-boot Ubuntu with Windows. I have a Dell Optiplex 755 genuine Windows Vista Business Edition, I want to just reinstall Windows Vista, I got this computer from my cousin,