Carsten
Members-
Content Count
52 -
Joined
-
Last visited
About Carsten
-
Rank
Member [Level 1]
-
I'm working on a website and a few minutes ago I got very tired from the Internet Explorer vertical scrollbar. This vertical scrollbar is always there, even if the length of the page does not require a vertical scrollbar. In this case, Internet Explorer will disable the scrollbar though not remove it. In my opinion this would be correct behaviour. The disabled however not hidden scrollbar means that a switch between a preview of your website in Mozilla Firefox and MS Internet Explorer will lead to an annoying change of the location of your layout. To disable this annoying switch and to hide the vertical scrollbar when the scrollbar is disabled anyway, put the following CSS code in your stylesheet: html { overflow: auto;}If you don't have a stylesheet yet, put this code in your html header:<style type="text/css">html { overflow: auto;}</style> Not much code needed, huh
-
Roll-over Image Links With Css No preloading of images
Carsten replied to theRealSheep's topic in General Discussion
This method is indeed very useful and much better then a javascript image replacement.I also used this method on several projects, though I never use tables for menu's but lists. It takes a minute to get used to lists but I recommend it to everyone. You can find many useful resources on lists also, and they are very easy to use in combination with different border behaviour. -
Unfortunately you might need to include more headers other then the From header if you want to send e-mail to big free e-mail providers like Hotmail. The mail() function has the syntax of mail($to, $subject, $content, $headers). To add some more required headers, just add a comma after $content and add a variable $headers. Then, fill the variable $headers with something like this: $headers = "MIME-Version: 1.0\n"; // don't change$headers .= "Content-type: text/html; charset=iso-8859-1\n"; // don't change$headers .= "X-Priority: 1\n"; // don't change$headers .= "X-MSMail-Priority: High\n"; // don't change$headers .= "X-Mailer: php\n"; // change php in what you like$headers .= "From: \"" . $from . "\" <" . $email . ">\n";$headers .= "Reply-To: \"". $from ."\" <". $email .">\n";Now you don't even have to copy/paste the users e-mail adress, you can directly click reply and send them an e-mail. To make it clear, replace mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); with mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content, $headers); and put all the $headers in front of that.
-
You could ofcourse work with frames, but I do not encourage that. I prefer a system with a list of all the questions on the top of the page in an order that makes sense, maybe by category. The questions are then stated below again, with their corresponding answers. By making bookmark links at the location of the questions and answers by using the <a name="question1"> to <a name="questionX"> and then linking to these bookmarks with the following code:<a href="#question1" title="Question 1"> to <a href="#questionX" title="Question X"> it is very easy to navigate. To make it even more easy, include a bookmark link at the top of your faq page, at the top of the list of all your questions, for instance<a name="#top"> and include a "top" link (to #top) at every question and answer instance. An example of a similar frequently asked questions system (although it is called help in this instance) can be found at http://forums.xisto.com/no_longer_exists/, which also looks very decent.
-
If you really want to guess a number, you should use php's rand() function. Look at http://de1.php.net/rand for more information. For example, if you want someone to guess a random number between 1 and 20, replace $guess=14; with $guess=rand(1,20);. The new script would be: <form action="guess.php?action=yes" method="post"><input type="text" name="t_guess"><br><input type="submit" value="Guess"><?phpif($action == "yes"){//have the number that they are suppose to guess...$guess=rand(1,20);//endif($_POST['t_guess'] == $guess){print "Good job! Guess was right!";}else{print "Guess was wrong! Try again!";}}?>Note that I have made some replacements. method="guess.php?action=yes"with action="guess.php?action=yes" method="post"because method can only be post and action, and the target has to be set with action. I also replacedif($action == yes){with if($action == "yes"){because your code would return an error without single our double quotes. I also replacedif($t_guess == $guess){with if($_POST['t_guess'] == $guess){because now it checks for a post argument and arguments posted via the url, get arguments, aren't valid as input.
-
That is weird, I use divs for organizing pictures and information, search engines, games websites and a lot of other sites too! Nice tutorial though.
-
In addition to your tutorial and to make the markup code more valid, change <style> to <style type="text/css">. Average tutorial, you could explain more and go a little more indepth.
-
I'm studying at the University of Maastricht in The Netherlands, this is my first year in International Business. I have to choose my major next year, and I have no clue which course I should choose.
-
Note: save the file in notepad as ".htaccess" and make sure that it has no .txt file extension since the .htaccess file wouldn't be read then. Just upload the file to your /public_html or /www directory.
-
This might be a problem in the Apache configuration files. You could try solving your problem by creating a .htaccess file with a DirectoryIndex directive to your index.php file. To do this, just open notepad and paste the following code: DirectoryIndex index.php index.htmlThis line will make your index.php file the default index file, and if there is no index.php file Apache will look for an index.html file. You can add more filenames if you want to. If this doesn't work, try to create a new subdomain called www and point it to your /www or /public_html folder.
-
Could you show us some tekken 5 demo screenshots? I loved tekken 2 on my playstation 1, though I haven't played it for a very long time. Maybe this will get me interested in consoles again
-
I haven't seen it, I didn't bother due to the bad reviews and trailer. I heard from multiple sources it is a really bad movie, the worst the Wayans brothers ever made.You all seem to like the movie, though. Maybe the reviewer is bad or you have a different taste in movies.
-
If you select a custom font and put it in your stylesheet, only visitors who have the same font installed view your site with that font. You can however provide an alternative font, like this: font-family: HANA, Arial, "Times New Roman"; or whatever fonts you like. If you really want to display your website using the HANA font, you could use a technique called sIFR to do it. This technique uses javascript to replace text with flash, and everyone who has javascript and flash enabled will see your chosen font. You would have to make a custom flash file though, with the HANA font in it. See http://forums.xisto.com/no_longer_exists/ for the code and help on how to make your own font flash file.
-
Nice tutorial for newbees. I recommend http://www.dafont.com/de/ for over 4500 of free fonts. A little note though, if you want to add fonts from Winzip, Winrar or any other archive extracting program, remember to go to your fonts folder and refresh the folder (press F5) to install the fonts. Sometimes fonts don't work when you don't do this.