Everything posted by Anth Winter
-
Get random image script.
can you paste the error in?
-
Review: Photo2Life
-
Review: Photo2Life
The navigation text is too small in my opinion, also there is a gap appearing on the right side of the contact button, this is viewing with firefox 3.5 the image with "Photo2Life" on has too much white space, especially above, maybe crop this down a tad? maybe make the width of this image to fit the width of the content? The images you use for your bullet points are pixelated around the edges, making it look un-professional Validation: http://validator.w3.org/check?uri=http%3A%2F%2Fphoto2life.co.uk%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 There is alot of <img> errors, you need to specify the "alt" and close a few <img> tags correctly EDIT: Ive just been testing your contact form, and i can enter anything into the email field, even a simple word is accepted as an email address. It does look like a nice design you have going so well done, just needs a little tweaking here and there
-
Get random image script.
in your mqsql database you could have something like id, companyname, URL, imagename with values of digital winter, http://www.digitalwinter.co.uk, digitalwinter.jpg then pull it from the database like so $query = mysql_query("SELECT * FROM companys order by id asc LIMIT 6", $connection); while ($row = mysql_fetch_array($query)) { echo "<li><a href=\"$row['URL']\" title=\"$row['companyname']\"><img src=\"$row['imagename']\" /></a></li>"; } or something along those lines..... this would take away the random feature though... and display each entry as entered in the database
-
slicing problem
its probably the use of tables, and the fact its all auto generated code by adobe. PSD to HTML/CSS is possible yes HTML and CSS can be learned at alot of places on the web for free, and they are quite powerful tutorials. http://htmldog.com/ and http://www.w3schools.com/ i would recommend instead of using tables in html, your better of using layers (<div>) although this can be tricky at first, and drive you crazy. the reusilts are far better
-
Get random image script.
great - theres probebly hundreds of ways out there although i know that with my code you will still run into images displaying multiple times, as its just random selection Glad you got it
-
Get random image script.
my way around it was to create a function out of it, and not to set the $rand, so that it got a new image each time HTML: <?php include("advert.php"); ?> <li><img src="<?php getImage(); ?>" alt="Advert" title="Advert"></li> <li><img src="<?php getImage(); ?>" alt="Advert" title="Advert"></li> <li><img src="<?php getImage(); ?>" alt="Advert" title="Advert"></li> <li><img src="<?php getImage(); ?>" alt="Advert" title="Advert"></li> <li><img src="<?php getImage(); ?>" alt="Advert" title="Advert"></li> </body> new PHP: <?php /* By Matt Mullenweg > http://photomatt.net Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php Latest version always at: http://photomatt.net/scripts/randomimage */// Make this the relative path to the images, like "../img" or "random/images/". // If the images are in the same directory, leave it blank. function getImage() { $folder = ''; // Space seperated list of extensions, you probably won't have to change this. $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; // Initialize some variables if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { // for each extension check the extension if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive $files[] = $file; // it's good ++$i; } } } closedir($handle); // We're not using it anymore mt_srand((double)microtime()*1000000); // seed for PHP < 4.2 $rand = mt_rand(0, $i); // $i was incremented as we went along echo $folder.$files[mt_rand(0, $i)]; // Voila! } ?>
-
Get random image script.
ive just tested the script and it worked ok? when you say its displaying one image multiple times, how many times is it repeating it? and when you refresh the page is it always the same image that displays?
-
slicing problem
is it possible to see this live? ie. the URL of where its uploaded? so we can see the visable fault? im guessing this code was auto generated by adobe?
-
Get random image script.
Ok - what images do you have in your DIR its looking in? and to make it clear to me... is it one image you want to rotate on each page visit?
-
Get random image script.
Delted, post changed
-
hello
Hello sash, WELCOME! do you have a particular area of interest?
-
WebDesignerForum Poll - auto insert target="_blank"
not botherd - if i normally want a new window i just press my mouse 3 button - which is pressing the MWheel down
-
Hello
hey Rhydian, welcome to WDF. hope you find the forums useful for you im most sure people with assist with your learning experience
-
CSS positioning
relative posistioning just extends onto its current location... kinda like "margin" would, which is why theres still an area underneath (where the text is "supposed" to display) try the below #hometitle{ font-size:60pt; font-weight: 400; text-align:left; color:#46afee; width:200px; position: absolute; top: 50px; padding-left: 24px; } #hometext{ font-style: italic; font-size:16px; font-weight:bold; color:#46afee; position:absolute; top: 350px; padding-left:17px; }
-
making it clear...
thats odd, it thinks theres no <ul> tag, but there cleary is.... no idea only thing i can see wrong, which im sure is not causing that problem is a random ";" in your css #navcontainer ul li a { text-decoration: none; float: right; color: #FFF; font-family: Tahoma, Geneva, sans-serif; height: 80px; padding-right: 1em; padding-left: 1em; ; border-left-width: 1px; border-left-style: solid; border-left-color: #FFF; } EDIT just found this in your HTML also. under you UL and LIs </div> </ul> </div>
-
Best way to embed video into website
the JW player is nice. ive used it before, if you can get the files converted to WMV http://www.longtailvideo.com/players/jw-wmv-player/
-
making it clear...
did you try this. #wrapper { margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; width: 970px; } #wrappertwo { width: 950px; float: left; background-image: url(../images/PNG/background_cube_trans.png); background-repeat: repeat; padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 20px; font-family: Tahoma, Geneva, sans-serif; font-size: 14px; color: #FFF; } then your html will be <div id="wrapper"> <div id="wrappertwo"> <div class="pageHeading" id="sectionName"><a href="#">Section Name</a></div> and then end the new div... <p> </p> <p> </p> </div> </div> </div>
-
Gap between divs. CSS problem?
i think it maybe your images causing the spacing. would it be possible to send the images you use to me so i can replicate your site? email is anthwinter@hotmail.com or is your site hosted anywhere i can look? ive just created your site without the images and everything fits and joins OK, which is why i think the images maybe pushing them over. on your divs you can put overflow:hidden; to test if its the images at cause
-
What is the best laptop?
what do you plan on doing on your laptop?
-
Feedback on this site...
Indeed, it is a nice design, it has alot of potential
-
Feedback on this site...
Agree with cinnamondm. I didnt even finish reading the whole of the text on the front page. And def get some images on the front page. Also the contact page only has an email address on, maybe put other means of contacting you on this like telephone, address, contact form? With just an email address id say there was no need for a contact page becuase you could insert the email address in the header or footer etc...
-
Is anyone else having this problem?
sometimes it could just be certain websites you are visiting that are causing this. normally download sites, porn or anything warez based perhaps I would recommend doing what BlueDreamer advised as this is usually a good resolver.. but if nothing comes of it then just watch out for any quick flashes when browsing around certain sites
-
Gap between divs. CSS problem?
what happens if u take the "height: 79px" out of the header? Or.. if u leave it, does it match the height of "header-bg.png", "logo.gif", and all the NAV gifs together? In your image above, is everything posistioned in order, as you expect (regardless of the fap problem)? or should things be showing elsewhere? The below needs a width defining as it as the float element in it. #navbar.ul { float:right; height:30px; } also in the below you have 2 ":" in "height" #content { width:742px; background-color:#ccc; min-height:250px; height::auto;
-
Gap between divs. CSS problem?
hmmm its pretty confusing indeed. what is the name of the image that has all the red lines on? u cud try make every background a random color (each one diff) so u can see whats reaching where and where things are starting and stopping for e.g. make header background green, maintitle blue, navbar orange and so on