I'm trying to make the code work with images, and work without using dates. I'm trying to alter someone elses script. The board doesn't show up with images. Thanks! - <script type="text/javascript">
-
var sUnsolvedSudoku
-
var sSolvedSudoku
-
var sStyle
-
var sHeader
-
var sTodaysDate
-
var d_names = new Array("Sunday", "Monday", "Tuesday","Wednesday", "Thursday", "Friday", "Saturday");
-
var d = new Date();
-
var curr_day = d.getDay();
-
var curr_date = d.getDate();
-
var curr_month = d.getMonth() + 1;
-
var curr_year = d.getFullYear();
-
var sSourceName
-
var sDiffSetting;
-
var sPrintDescription;
-
var sPrizeCaption = "\n\nThis picture is: Mastering tree climbing";
-
var IsSupportingMember;
-
var bEnterYourOwnPuzzle = false;
-
var IntervalTimes = new Array(81);
-
for (i=0; i <=81; i++)
-
{ IntervalTimes[i]=new Array(4);
-
IntervalTimes[i][2] = 0;
-
IntervalTimes[i][3] ='';
-
IntervalTimes[i][4] =''; }
-
var sQueryString = unescape(location.search);
-
var Undos = new Array(200);
-
var UndosCurr;
-
UndosCurr=1;
-
IsSupportingMember=false;
-
sQueryString = sQueryString.replace('?','');
-
sDiffSetting = 'A';
-
sSourceName = '13-2-2007.js';
-
sTodaysDate = '13-2-2007';
-
sUnsolvedSudoku ="<table class=sudokutable><tr><td class=bdr00>3</td><td class=bdr10>1</td><td class=bdr00>2</td><td class=bdr10>4</td></tr><tr><td class=bdr01> </td><td class=bdr11>2</td><td class=bdr01> </td><td class=bdr11> </td></tr><tr><td class=bdr00> </td><td class=bdr10> </td><td class=bdr00>4</td><td class=bdr10> </td></tr><tr><td class=bdr01>1</td><td class=bdr11>4</td><td class=bdr01>3</td><td class=bdr11>2</td></tr></table><div>Sudoku provided by Sudoku.com.au</div>";
-
sSolvedSudoku ="<table class=sudokutable><tr><td class=bdr00>3</td><td class=bdr10>1</td><td class=bdr00>2</td><td class=bdr10>4</td></tr><tr><td class=bdr01>4</td><td class=bdr11>2</td><td class=bdr01>1</td><td class=bdr11>3</td></tr><tr><td class=bdr00>2</td><td class=bdr10>3</td><td class=bdr00>4</td><td class=bdr10>1</td></tr><tr><td class=bdr01>1</td><td class=bdr11>4</td><td class=bdr01>3</td><td class=bdr11>2</td></tr></table><div>Sudoku provided by Sudoku.com.au</div>";
-
-
var UseAry=ImgAry;
-
var ImgPath='http://www.tpgames.net/gaming/2/puzzlers/sudoku/';
-
var iGridUnsolved= new ImgArray(3.gif,1.gif,2.gif,4.gif,0.gif,2.gif,0.gif,0.gif,0.gif,0.gif,4.gif,0.gif,1.gif,4.gif,3.gif,2.gif);
-
var iGridSolved= new ImgArray(3.gif,1.gif,2.gif,4.gif,4.gif,2.gif,1.gif,3.gif,2.gif,3.gif,4.gif,1.gif,1.gif,4.gif,3.gif,2.gif);
-
var sPuzzleID = 'Puzzle #5927 - ';
-
-
if (window.top!=window.self)
-
window.top.location="/trial/iaukids.html";
-
var iPlayerMoves = new ImgArray(80);
-
var iCurNum;
-
iCurNum = 1;
-
var sBGColor = '#e9e9e9';
-
var sSqMarkColor = '#e7ffd5';
-
</script>
-
- <script type="text/javascript">
-
var months = new ImgArray(13);
-
months[0] = "January";
-
months[1] = "February";
-
months[2] = "March";
-
months[3] = "April";
-
months[4] = "May";
-
months[5] = "June";
-
months[6] = "July";
-
months[7] = "August";
-
months[8] = "September";
-
months[9] = "October";
-
months[10] = "November";
-
months[11] = "December";
-
var monthname = months[sTodaysDate.split('-')[1]-1];
-
if (sTodaysDate)
-
document.write('Sudoku for ' + sTodaysDate.split('-')[0] + '/' + monthname + '/' + sTodaysDate.split('-')[2]);
-
else
-
document.write('Enter your own sudoku puzzle.')
-
function ChangeBoard()
-
{
-
var oCtl;
-
var iX;
-
var iY;
-
var iSize;
-
oCtl = document.getElementById('sudokutable');
-
switch (oCtl.height) {
-
case '360' :
-
case '360px' :
-
iSize = 36
-
oCtl.height='324px';
-
document.getElementById('sudokutableBox').style.width='324px';
-
document.getElementById('sudokutableBox').style.height='324px';
-
break;
-
case '324' :
-
case '324px' :
-
iSize = 30
-
oCtl.height='270px';
-
document.getElementById('sudokutableBox').style.width='270px';
-
document.getElementById('sudokutableBox').style.height='270px';
-
break;
-
case '270' :
-
case '270px' :
-
iSize = 40
-
oCtl.height='360px';
-
document.getElementById('sudokutableBox').style.width='360px';
-
document.getElementById('sudokutableBox').style.height='360px';
-
break;
-
default :
-
iSize = 36
-
oCtl.height='324px';
-
document.getElementById('sudokutableBox').style.width='324px';
-
document.getElementById('sudokutableBox').style.height='324px';
-
break;
-
}
-
SetCellSize(oCtl,iSize);
-
}
-
function SetCellSize(oCtl,iSize)
-
{
-
var iX;
-
var iY;
-
for (iX=0;iX<=oCtl.rows.length-1;iX++)
-
{
-
for (iY=0;iY<=oCtl.rows.length-1;iY++)
-
{
-
oCtl.rows[iY].cells[iX].height=iSize + 'px';
-
}
-
}
-
}
-
</script>
4 1272
Here's a link to the JavaScript file
I'm a complete newbie and don't understand JS very well.
acoder 16,027
Recognized Expert Moderator MVP
I had to get adminstrater to fix the link, and should have simply reposted it as they have a silly 5 minute timer for editing posts. I had forgotten to move the file before posting the link. Sorry! (Obviously, they haven't fixed the link yet.)
Heres the correct link to the JavaScript file: New Link
This question is still valid as I have not figured out an answer yet. thanks.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Allen |
last post by:
I am trying to add an additional photo/hyperlink to the company web
site (I didn't create it) without any luck. The mouseover feature
'highlights' pics by swapping them with another pic using this command
in some type of array. I added the mailbox in the lower left corner
(see link below)http://www.aamechanical.com/indextemp.htm
but I cannot get it to swap. Here is the code for the page:
Thanks for your help in advance
|
by: bigoxygen |
last post by:
Hi.
I have a list that is similar to this:
-Evaluation
+test
+test
-Students
+test
I would like to change the "-" bullet only, but I cannot. My
|
by: LRW |
last post by:
Having a problem getting a onSubmit function to work, to where it popsup a
confirmation depending on which radiobutton is selected.
Here's what I have:
function checkdel() {
if (document.getElementById"].value=='1') {
confirm('Are you sure you want to delete this file?');
}
}
......
|
by: Rob |
last post by:
Access Gurus,
This script was used to view the reports on the web by choosing a
date on or before the current day.Recently it stopped working and i am
not able to figure where the problem is.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=en xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
|
by: WRH |
last post by:
Hello
I am new to asp but I made some Jscript functions which work
fine. The functions contain some strings used as a registration
key for some apps. It is important that these strings not be
visible to a client using a browser. My question is...can a
knowledgeable browser user view Jscript source code in an asp file?
| |
by: Gordowey |
last post by:
Where can I find this DIV effect.
go to: http://www.amazon.com
Put mouse over the text "See All 32 Product Categories"
(Top-Middle)..it will open a window with a cool effect...
does anyone know where to find a script with this effect....
thanks
|
by: Andy Baxter |
last post by:
Can anyone recommend a good online guide to using objects in javascript?
The book I bought (DHTML Utopia) suggests using objects to keep the code
clean and stop namespace clashes between different parts of the code, but
as far as I can see, the way objects work in javascript is quite awkward.
I had it working the way they suggest in the book, and it was going OK
until I wanted to call one object method from another - I couldn't find a...
|
by: rfr |
last post by:
Apparently the Transitional Doctype kills this script because the script
does not make proper use of units like "px".
It works well without a doctype statement. But once someone adds a
transitional doctype, the js script no longer works.
Can someone familiar with javascript bring it up-to-date so that it works
with current doctypes and post it here for others to make use of?
The whole HTML document including the js scrip follows (...
|
by: zion4ever |
last post by:
Hello good people,
Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet reservation of available resources (laptops, beamers, etc). The MySql database queries are already in place, as is the ASP administration panel. The frontend that users will see however, still needs some work. I'm really close, but since I'm no...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |