-
Please Help - Datepicker CSS Issue
Hi I have made a Calendar using Dreamweaver CC's Jquery UI I have set it to inline and 12 months however the calendar goes off the page How can i set the calendar to show 12 months and only 3 months per row? Any ideas would be so helpful i have tried everything! :/
-
How to add file types to my upload script
Hi, I have the below script to upload files. I want to only allow specific file type such as jpg png and pdf can anyone help me add this to my code thanks <?php if(isset($_FILES['ImageUpload'])) { $imageName = $_FILES['ImageUpload']['name']; $imageName = mt_rand(100000,999999).$imageName; $imageTemp = $_FILES['ImageUpload']['tmp_name']; $imageType = $_FILES['ImageUpload']['type']; $file_size = $_FILES['ImageUpload']['size']; $imageName = preg_replace("#[^a-z0-9.]#i", "", $imageName); if (($file_size > 125000)){ echo "File too large. File must be less than 2 megabytes. $file_size"; die; } if (!$imageTemp) { echo("Nope"); }else{ move_uploaded_file($imageTemp, "Upload/$imageName"); } } ?>
-
PPD Question?
Hi, I have a website where I offer free scripts and psd files ect... I have recently noticed that a few of my files were particularly receiving a high volume of downloads and as they were free I wanted to use PPD (Pay Per Download) to earn some revenue from my work. I have noticed that people are clicking on the download link (Share Cash) and not filling out the surveys and therefore not downloading the files or I earning any money. I just wanted to know if there are any other type of PPD other then survey sites that I could switch to or if people think PPD actually works or not thanks
-
File Upload not working?
Hi all, I have created a file upload script but it keeps failing for some reason? HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="script.php" method="post" enctype="multipart/form-data"> <input type="file" name="file_array" /> <input type="submit" value="Upload" /> </form> </body> </html> PHP <?php if(isset($_FILES['file_array'])){ $name_array = $_FILES['file_array']['name']; $tmp_name_array = $_FILES['file_array']['tmp_name']; $type_array = $_FILES['file_array']['type']; $size_array = $_FILES['file_array']['size']; $error_array = $_FILES['file_array']['error']; for($i = 0; $i < count($tmp_name_array); $i++){ if (move_uploaded_file($tmp_name_array[$i], "/uploads/".$name_array[$i])){ echo $name_array[$i]." Upload is Complete<br>"; } else { echo "move_uploaded_flie function failed for ".$name_array[$i]."<br>"; } } } ?> Any Ideas? Thanks
-
CSS issue?
I dont think it is the padding but this has been bugging me for ages and i cant work it out. #SearchBar { height:40px; clear:both; overflow:auto; background-color:rgb(40, 40, 40); } #Container { height:auto; background-color:rgb(255, 255, 255); } #Search { height:autopx; } #SearchForm { width: 600px; margin-top: 60px; margin-right: auto; margin-left: auto; } #Footer { height: auto; width: 100%; background-color: rgb(249, 242, 250); bottom: 0; position: fixed; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: lighter; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 11px; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #CCC; border-right-color: #CCC; border-bottom-color: #CCC; border-left-color: #CCC; } #SearchResultsPage { height:auto; } And here is my menu nav ul { margin:0; padding:0; } nav ul li { list-style-type:none; float:left; display:block; width:100px; height:40px; text-align:center; line-height:40px; font-family:Arial, Helvetica, sans-serif; font-size:17px; } nav ul li a { text-decoration:none; color:#FFF; } nav ul li:Hover { background-color:rgb(244, 244, 244); color:rgb(40, 40, 40); } nav ul li:Hover a { color:rgb(40, 40, 40); } nav a { display:block; }
- CSS issue?
-
-
CSS Sub Menu not in line with rest of menu?
Thank you guys... was trying to figure this out for ages...
-
CSS Sub Menu not in line with rest of menu?
Thanks... This only works with one sub menu list item... more then one and it doesn't work Any ideas?
-
CSS Sub Menu not in line with rest of menu?
I made a css menu and the sub menu is not in line even though I used a margin from the left the same as the width of the menu.. here is my code nav ul { margin:0; padding:0; } nav li { list-style-type:none; display:block; width:150px; height:60px; text-align:center; line-height:55px; font-size:17px; font-family:Arial, Helvetica, sans-serif; } nav a { text-decoration:none; color:#000; } nav li:Hover { background-color:#CCC; } nav ul ul { display:none; } nav ul li:Hover > ul{ display:block; margin-left:150px; }
-
How do you do this?
Thank you! just what I needed
-
-
Can someone give me a list of what I need to know in order to design a website professionally?
I think your on the right track... Main ones are definitely: HTML, CSS, PHP, SQL! and javascript They are the main ones you will use the most... others like jquery ect.. are not as important for basic webdesign Best advice if you trying to learn is use this site: codecademy (dot) com great free way of learning to code
-
How do you do this?
Hi, I have been looking at a few sites and when you scroll down the page a '^' button appears to click they give you an option to click a button to be taken back to the top of the page. I know you have to link to #divname but what I want to know if how you make it appear when the user scrolls down and disappear when they are at the top also how to make it float on the side of the site? I have been searching for it but couldn't as I didn't know what to search for Thanks in advance
-
Why is my CSS Menu Submenu not appearing?
Thank you! But I was really trying to understand what is wrong with my own code. Any Ideas? Thanks again!
-
Why is my CSS Menu Submenu not appearing?
Hi, I am trying to design my own css menu, the issue I have found is that my sub menu is not appearing and I am not clear as to why. Here is my HTML: <div id="MenuDiv"> <ul> <li><a href="#">Home</a></li> <ul> <li> <li><a href="#">Sub 1</a></li> <li><a href="#">Sub 2</a></li> </li> </ul> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> And My CSS: #MenuDiv { width:800px; height:60px; background-color:#333; margin-left:auto; margin-right:auto; } #MenuDiv ul { margin:0; padding:0; } #MenuDiv li { list-style-type:none; float:left; text-decoration:none; display:block; width:150px; height:60px; border-left:1px solid #CCC; font-family:"serif", Times New Roman, Times; font-size:18px; text-align:center; line-height:60px; } #MenuDiv li:Hover { background-color:#CCC; } #MenuDiv li a { text-decoration:none; color:#FFF; } #MenuDiv ul ul { display:none; } #MenuDiv ul ul li { display:block; } Thank you in advance!