Jump to content


Photo

Irock


  • Please log in to reply
6 replies to this topic

#1 DrDick

DrDick

    Active Member

  • Members
  • PipPip
  • 10 posts

Posted 17 June 2012 - 07:01 AM

Just finished HF HTML... & started HF JavaScript. Problem is the dialogue box in irock2 and irock3 overwrites the lower half of the rock. Looks really dumb. Attempts to reposition the box have failed. I did manage to move the rock down the page but that looks dumb too. Any suggestions?

#2 drewdin

drewdin

    Super Veteran Member

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 608 posts
  • Gender:Male
  • Location:Boston

Posted 19 June 2012 - 08:20 AM

Just finished HF HTML... & started HF JavaScript. Problem is the dialogue box in irock2 and irock3 overwrites the lower half of the rock. Looks really dumb. Attempts to reposition the box have failed. I did manage to move the rock down the page but that looks dumb too. Any suggestions?


Wheres your code?

#3 DrDick

DrDick

    Active Member

  • Members
  • PipPip
  • 10 posts

Posted 19 June 2012 - 09:11 AM

The code is on page 20 of the book. It appears that the alert box occupies the entire browser window. In Firefox and Opera it is positioned near the center of the browser window and has a not so light, gray background. When you click the OK button the alert box disappears (as expected) and the background returns to its default value. There is no mention of this in the book.
The same thing happens when I run the code for irock3 directly from the zipped files.
It may be "fixable" with some styling, but I'm not going to waste time trying. I'm just going to move along!

#4 drewdin

drewdin

    Super Veteran Member

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 608 posts
  • Gender:Male
  • Location:Boston

Posted 19 June 2012 - 10:35 AM

The code is on page 20 of the book. It appears that the alert box occupies the entire browser window. In Firefox and Opera it is positioned near the center of the browser window and has a not so light, gray background. When you click the OK button the alert box disappears (as expected) and the background returns to its default value. There is no mention of this in the book.
The same thing happens when I run the code for irock3 directly from the zipped files.
It may be "fixable" with some styling, but I'm not going to waste time trying. I'm just going to move along!


I dont get that with firefox, chrome, or IE. That's why i wanted to see your code.

#5 DrDick

DrDick

    Active Member

  • Members
  • PipPip
  • 10 posts

Posted 20 June 2012 - 11:22 AM

I dont get that with firefox, chrome, or IE. That's why i wanted to see your code.



#6 DrDick

DrDick

    Active Member

  • Members
  • PipPip
  • 10 posts

Posted 20 June 2012 - 11:28 AM

Here is the code for just the alert box. I copied it from the zipped files for Chapter 1.
<html>
<head>
<title> iRock - The Virtual Pet Rock</title>
</head>
<body onload="alert('Hello, I am your pet rock.');">

</body>
</html>

#7 DrDick

DrDick

    Active Member

  • Members
  • PipPip
  • 10 posts

Posted 22 June 2012 - 06:11 AM

I tried Chrome and IE and the problem went away. With these two browsers, the alert box has a definite "Windows" structure. I'm using Firefox V13.0.1 and Windows XP Professional and have no plans to change. Thanks for your input.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users