Everything posted by php_penguin
-
Using non-defined (custom) tagnames
Well I was experimenting with writing an ajax application, which in itself will help you write a book. Basically I was trying it with tag structures like this: <section> <page> <left> <pagename>Introduction</pagename> <pa>some text here</pa> <subtitle>Who should read this book?</subtitle> <pa>bla bla bla</pa> </left> <right> <code type="php">php code displays here</code> </right> </page> </section> and so on. it works well in firefox (see upload...), but if it doesn't work in IE i will just use standard tags with classes applied. book.html
-
Using non-defined (custom) tagnames
Hey just wondering a couple of things really... say i have this code: (minus head) <body> <jiggle>some text</jiggle> </body> that will display properly in FF. I can even make it a block element, apply padding + margins, change the colours... just like a regular div. I was just wondering wether the same holds true for IE7? I don't have access to a Windows PC (running Ubuntu) at the moment, so if anyone could do a quick test, that would be great. For further kicks, try and access the element using javascript. (getElementsByTagName("jiggle")
-
Hows is this amazing effect done?
crazy idea here, but could you use the cascading menu using list items, to contain the page details, instead of a submenu admittedly this would be onhover rather than onclick, but it could work...
-
Web Design Portfolio (XHTML/CSS)
me too also, going under the same name there.
-
Hows is this amazing effect done?
very nice. each div will have a "goto" position, in pixels. This may have been worked out before, or on the fly... it may even be done by multiplying the item index by the box width. This goto position is then animated to from the current position, and the speeds are tweened, to give the acceleration and deceleration effects. It would be moderately easy to code, and yes it does look ****ing cool.
-
General Opinion on my Website
IE5 has a near 0% user base... Maybe in 500 users will be using IE5.
-
w00t! first xhtml / css layout
Jay-S: it does say it his first attempt at this, so a lack of images or standard-practice code is hardly fair comment.
-
w00t! first xhtml / css layout
a couple of notes: most make no difference, other than css filesize you can use "margin: auto;" rather than "margin-left: auto; margin-right: auto;", its shorter and does exactly the same in all browsers. you can use jsut "background" rather than the full "background-color" you can use short hex-codes, so "#FFFFFF" becomes "#FFF", similiarly "#0088FF" becomes "#08F". try not to use non-hex or non-rgb codes, keywords such as "white" occasionally look different per browser, although only by a couple of points. This is more of a problem for less defined ones, such as aliceblue It is a good idea to set a font-family in the body declaration, as a fallback position. This will not affect font used in table elements, but will do for divs. Very well done for a first attempt, lets see what happens when you start applying some design to it! Next you should focus on doing more advanced layouts - a good source of inspiration is other sites. Look at some sites and see if you can mimic there own page structure, without looking at the source code - it really helps you find out where your knowledge gaps are
-
Image Rotation on Home Page
ok well heres how you might do it in PHP: <?php $image_dir = "/path/to/images/"; $good_types = array("jpg","jpeg","gif","png"); // open and read the directory. if( $open_dir = opendir( $image_dir) ) { while( ($file = readdir($open_dir)) !== false ) { // get extension of image $file_info = pathinfo($file); $file_type = $file_info['extension']; if( in_array( $file_type, $good_types ) ) { $image_list[] = $file; } } } $selected = $image_list[ rand( 0, count($image_list) ) ]; print $selected; ?> just change the top two variables to something (good_types might not need to change) Of course, if you don't have PHP on your server, here is a javascript solution (less dynamic, involves editing script to include images): <script language="JavaScript" type="text/javascript"> var ic = 10; var images = new Array( ic ); // the number inside (ic) is the number of images in the list. image[] = "one.jpg"; image[] ="two.png"; image[] = "three.gif"; image[] = "four.jpg"; image[] = "five.png"; image[] = "six.jpeg"; image[] = "seven salty seamen.png"; image[] = "ate.gif"; image[] = "nein.jpg"; image[] = "ten.png"; var randnum = Math.round( Math.random(ic - 1) ); var chosen_one = image[ randnum ] // do whatever with chosen_one now. </script> the javascript is the worst solution of the two. With PHP you could go further, and make it open the image and output it, so you could simply do : <img src="randimg.php?from=/images/homepage/" /> to get a random image displayed. However, i will leave it to you to figure this out (or someone else).
-
Hello fellow UK web addicts.. and those of you around the globe too
we also get loads of dolies from liverpool + manchester given to us... its a wonderful christmas present... aberystwyth is a very nice town, i spent a couple of summers there when my parents owned a sports shop there (freedom i tink it was called, it was opposite the wetherspoons)
-
Web Design Portfolio (XHTML/CSS)
quite nice overall, the reds and oranges make it feel quite proffesional, like a law firm or sommat haha... Is there a reason why the menu/header doesn't span the whole width (viewed in IE7)? Also, not sure what sort of logo the dying leaf is... just doesn't conjure up good imagery for me really 7/10
-
livingforart | freelance web designer
not a big enougfh palette, and the font doesn't really fit the overall theme. try arial or trebuchet? over than that, quit nice... 6/10
-
Hello fellow UK web addicts.. and those of you around the globe too
Hello there, I'm from Wales (England thinks we are UK but we dont...) If you have any questions about PHP/MySQL dont hesitate to ask.
-
Hi!
well, thats very comprehensive.. very good for stalkers at least CSS is strange to memorize... once you have it, you don't remeber why or when you didn't...
-
DIV allignment, CSS, and W3C questions.
gah... way too much text. Try and keep questions condensed to about 5 lines, excluding source code.
-
What is the best way to get 10,000 visits a day?
google adwords is the best way for many ecommerce sites. my da spends about 1500 a month on adwords, and that translates into approx 15000 revenue. The average order is about £20, so that is approx 750 sales a month. Considering the avg click-to-sale is 6%, that is well over 12500 unique viewers a month. Admittedly this is an established site, and it costs a fair whack to get hese clicks, but it is not too difficult.
-
Best software
i know this sounds FUBAR but paint shop pro 7 is the best one, far outdoing any of the Corel PSP's
-
JS - Getting the name of the current stylesheet?
well then you could do something like creating a div element, and setting its style to "display: inline" in the tag itself, and then in the stylesheet you are checking for, set it to be block type. somethng like this: <div style="display: inline" id="sscheck"> </div> /* in stylesheet */ div#sscheck { display: none; } /*in script */ if( document.getElementById("sscheck").style.display == "none" ) { // the stylesheet is in use }
-
Helloooo
hi there, well done on getting a job at least
-
Web Rage: Slow websites effect your sales & lose you visitors
heck i know about web rage... i kicked a whole through my wall (plasterboard) waiting for my internet to speed up... spent the rest of the day fixing it so my rage was solved at least.
-
Anyone for exam results?
1 in 20 is top 5% lol... Anyway , i got BCDc so just trying to get hold of th efrickin universities!
-
Anyone for exam results?
Seems from that, that it is only in place for a few courses or schools or something.... There is certainly nothing i've heard in my own speel.
-
Anyone for exam results?
A* ? Is he doing A levels? because there aren't any A* grades in the UCAS points system... 240 out ot 300 is an A, but there is nothing beyond that.
-
Michael Jacksons Thriller - Bollywood Style (Funny Video)
Wow... combining the two things i hate most in the world. Bollywood and Michael Jackson.
-
Anyone for exam results?
I'm doing a gap year, just working not travelling. If anyone has a job going ? lol I'll post my results here if they aren't too bad... And then i'll be out getting bladdered - it isn't results night if you dont