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?
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:
"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
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...
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
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.
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.
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:
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.
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.