The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Few HTML Questions...
 

Post Reply  Post Oekaki 
 

Posted By Message

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
5th December, 2004 at 05:18:04 -

hi.

Just a few questions,

1.) You know in Internet Explorer 6.0+, how when you hold the cursor over an image somtimes that little save/print/resize toolbar appears? Is there a way to stop that from happening? it looks stupid when it comes up on an image that is suppose to blend in with the background.

2.) Making text over lap an image, how is that done?

3.) I'm not sure if this can be done in HTML, but you know how some of you guys have a random avatar display everytime the page is loaded? I want to make it so when you open a page a random page is loaded from a folder that is uploaded.

4.) I want my entire site to be in a pre-resized window that cannot be enlarged or shrunk. How would go about doing that?

thanks.

 

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
5th December, 2004 at 06:02:18 -

1. Make the image the background of a TD. <td background="mypicture.gif" width="100" height="100">

2.
a. Use a <Div> and put your text in it. <div style="position:absolute; left:100px; top:100px;></div> - Not recommended though, because some browsers work differently with 'div' positions.

b. Use the method in point 1, and put text inside the <TD>

3. That's usually PHP, although it can be done in any scripting language

4. You can't stop the window size from changing. Ok, you could use Javascript but that looks horrible and gets on people's nerves. Try just making the main part of your site a fixed width:

<table align="center" width="750"> ...

This way, the site will always be 750 pixels wide (which is about right for 800x600) but on larger resolutions it won't stretch, it'll just be centralised and 'padded out' with your background image.

There's another method which involves making a popup window in javascript:

<input type="button" value="Click me!" OnClick="window.open('mypage.htm','','width=500,height=500');">

Image Edited by the Author.

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
5th December, 2004 at 06:23:23 -

woo! Thanks heaps. I'll try it out.

Okay I think i've really stuffed this up.
I tried those things and they didn't work, but i'm pretty sure it's because I made half the site in this Yahoo page builder thing I found.
You told me not to use the div tag thing, but after looking in the HTML code i've used it like 50 times...


Image Edited by the Author.

 

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
5th December, 2004 at 07:44:54 -

That's probably why then, maybe you should use Dreamweaver or something

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
5th December, 2004 at 09:18:35 -

As for 4, DONT DO THAT! You're breaking one of the fundamental rules in web usability by having a non resizable page. Your site should also use percentage/relative sizes so it stretches to the user's browser size, and fits their resolution. (Ever used a high resolution and used a fixed sized site like Natomic or Acoders? Huge bands of background down either side...)
If you use javascript to force a size you can expect people just to close your site immediately.

There are some exceptions though like the help section of a site or something if it pops up, but whatever you do don't do it for a whole site.

Rant over.

 
- Tigerworks

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
5th December, 2004 at 09:33:34 -

I was under the impression that you could only make non-resizable windows in Internet Explorer (e.g. those full screen portals that spyware installs).

 
n/a

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
5th December, 2004 at 09:49:16 -

I am using dreamweaver now, but the buttons i've made are different they are different sizes (sorta) It is hard to explain what I mean but they need to be alligned perfectly along one another but also over lap another image. I didnt know how to do that in dreamweaver. As for the resize window thing, I want the window to be shunk smaller so there isn't loads of blank background, I want to cut that out.

 

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
5th December, 2004 at 10:07:28 -

And what if he doesn't want his site stretching to the whole width of the screen?

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
5th December, 2004 at 10:24:47 -

"You're breaking one of the fundamental rules in web usability by having a non resizable page."

sorry tigs but i must say that that is total bollocks. observe:

www.yahoo.com
www.gamespot.com
www.bbc.co.uk

wow, three very popular websites with FIXED WIDTH designs. it's not a fundamental rule, it's a design choice that must be made, and it's dependant on lots of factors. some websites would look really bad if you made them stretch out. the most common resolutions are 800*600 or 1024*768 anyway.


 
www.thenatflap.co.uk

Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  254

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
5th December, 2004 at 11:55:03 -

Also, for images.. if you have to use an IMG tag, and you dont want the popup image tool bar to appear, use GALLERYIMG="NO" within the tag

 
.: ImageApocalyptic Coders - www.acoders.com :.

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
5th December, 2004 at 12:22:19 -

LOL!

 
Image

醤油の兵士

Almost Human

Registered
  12/06/2002
Points
  173

VIP Member
5th December, 2004 at 12:25:07 -

3)
say we have this folder:
somepage.htm
anannoyingpage.htm
randompage.htm
...

so use this code in your page htat loads up a random page:

<script language="JavaScript">
pages = ["somepage.htm","anannoyingpage.htm","randompage.htm"...]; //don't think it's possible to load a directory into an array if so, tell me.
random = pages[Math.Floor(Math.Rand()*pages.length)+1]; //will set random to one of the strings in the pages array

document.href="directory/"+random;
</script>

that should work, haven't tested it out yet though


 
As a boy, I wanted to be a train. I didn’t realize this was unusual—that other kids played with trains, not as them.

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
5th December, 2004 at 12:31:56 -

That does really WORK!!!

 
Image

醤油の兵士

Almost Human

Registered
  12/06/2002
Points
  173

VIP Member
5th December, 2004 at 13:23:47 -

oops, sorry, try this instead:

<html>
<body onLoad="load()">
<script language="JavaScript">
function load() {
pages = ["flan.htm","JRPG.htm"];
random = pages[Math.floor(Math.random()*pages.length)];

window.location=("directory/"+random);
}
</script>
</body>
</html>

you do know how to use arrays, correct?

Image Edited by the Author.

 
As a boy, I wanted to be a train. I didn’t realize this was unusual—that other kids played with trains, not as them.

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
5th December, 2004 at 13:35:56 -

...

 
Image
   

Post Reply



 



Advertisement

Worth A Click