Nickk
12-13-2008, 04:10 AM
1) Script Title: DHTML puzzle script!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex12/dhtmlpuzzle.htm
3) Describe problem: I uploaded the files to my URL removed as requested (warning: adult content), put said files into a folder, and put the code in on the webpage, but the puzzle is not showing. My image's original width and height are 391 x 500, but I adjusted them to 345 and 450 so they'd be divisible by 3. The entire code is:
<script language=javascript src=dynlayer.js></script>
<script language=javascript src=mixup.js></script>
<script>
/*
DHTML puzzle script (By Davey Erwin, daverwin@hotmail.com, http://daverwin.homepage.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//1) Specify whether puzzle should be rendered in NS 4.
// "0" disables it (for use when you wish to place the puzzle inside table)
var display_in_NS=1
//2) Configure second and third parameter below for puzzle image/size
//Make width and height divisible by 3
myPuz=new Puzzle('myPuz','http://farm4.static.flickr.com/3257/3104044506_3cc09572c0.jpg',345,450)
//3) Specify how many line breaks should appear after puzzle (for spacing purposes)
//Pertains only to NS
var linebreaks=14
writeCSS(myPuz.css)
if (document.layers) {
widthCheck = window.innerWidth
heightCheck = window.innerHeight
window.onResize = resizeFix}
function resizeFix() {
if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
document.location.href = document.location.href}
function DavInit(){
DynLayerInit()}
if (document.all||(document.layers&&display_in_NS==1))
window.onload=DavInit
</script>
<script>
if (document.all)
document.write(myPuz.div)
else if (document.layers&&display_in_NS==1){
document.write(myPuz.div)
for (spacer=0;spacer<=linebreaks;spacer++)
document.write('<br>')
}
</script>
I apologize if my webpage offends anyone. All I'm asking for is help on getting the puzzle to work.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex12/dhtmlpuzzle.htm
3) Describe problem: I uploaded the files to my URL removed as requested (warning: adult content), put said files into a folder, and put the code in on the webpage, but the puzzle is not showing. My image's original width and height are 391 x 500, but I adjusted them to 345 and 450 so they'd be divisible by 3. The entire code is:
<script language=javascript src=dynlayer.js></script>
<script language=javascript src=mixup.js></script>
<script>
/*
DHTML puzzle script (By Davey Erwin, daverwin@hotmail.com, http://daverwin.homepage.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//1) Specify whether puzzle should be rendered in NS 4.
// "0" disables it (for use when you wish to place the puzzle inside table)
var display_in_NS=1
//2) Configure second and third parameter below for puzzle image/size
//Make width and height divisible by 3
myPuz=new Puzzle('myPuz','http://farm4.static.flickr.com/3257/3104044506_3cc09572c0.jpg',345,450)
//3) Specify how many line breaks should appear after puzzle (for spacing purposes)
//Pertains only to NS
var linebreaks=14
writeCSS(myPuz.css)
if (document.layers) {
widthCheck = window.innerWidth
heightCheck = window.innerHeight
window.onResize = resizeFix}
function resizeFix() {
if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
document.location.href = document.location.href}
function DavInit(){
DynLayerInit()}
if (document.all||(document.layers&&display_in_NS==1))
window.onload=DavInit
</script>
<script>
if (document.all)
document.write(myPuz.div)
else if (document.layers&&display_in_NS==1){
document.write(myPuz.div)
for (spacer=0;spacer<=linebreaks;spacer++)
document.write('<br>')
}
</script>
I apologize if my webpage offends anyone. All I'm asking for is help on getting the puzzle to work.