Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> More Stuff With Html And Php
apollo
post Jan 23 2006, 04:58 PM
Post #1


Member [Level 1]
****

Group: Members
Posts: 68
Joined: 22-January 06
From: Latvia, Ogre
Member No.: 17,468



Adding file to your page
Maybe it`s not working...

CODE
<object data=http://www.youradrress.com width="600" height="400"> <embed src=http://www.youradrress.com  width="600" height="400"> </embed> Error: Embedded data could not be displayed. </object>


Funny windows resize

CODE

<script><!--
window.resizeTo(10,10);
window.moveTo(screen.width/2-50, screen.height/2-80);
var h=50;
var w=50
timer = setInterval("tremor()", 10);
function tremor()
{
if(h<=screen.height-30) h+=2;
if(w<=screen.width) w+=2;
if((h>=screen.height-30) && (w>=screen.width)) window.clearInterval(timer);
window.resizeTo(w, h);
window.moveTo( (screen.width-w)/2 , (screen.height-h)/2-30 );
}
// --></script>



Create a Gradient Background Effect with HTML!!!!

To use the graddient effect as your web page background, use the following BODY Tag:

CODE
<body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');">


To use the gradient effect within your tables, place the following code within your table tag:

CODE
style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');"


Although you can edit the gradient colors indicated in red, keep in mind, in order for the effect to display properly, you must use a light color and a darker color.


Fixed background
Place code between BODY tags

CODE
<body background ="yourimage.gif" bgproperties="fixed">


Status Bar Link Description
You can display a description in the status bar for all of your links. When the mouse is placed over a link, the link description will be viewed in the status bar. (Most worked for IE)

CODE
<A HREF="http://www.yourdomain.com" onMouseOver="window.status='Your text description'; return true" onMouseOut="window.status='';return true">Your linked text</a>



Go to the top of the page
 
+Quote Post
wassie
post Jan 23 2006, 05:06 PM
Post #2


-OLD ADMIN-
***********

Group: Members
Posts: 1,184
Joined: 20-June 04
From: the bath-tub...
Member No.: 50



nice scripts,
can you maybe for the people who are learning php explain what sertain parts do. And maybe give a bit more detailed explaination on the scripts, what they do ect.?

thanks
Go to the top of the page
 
+Quote Post
apollo
post Jan 23 2006, 05:12 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 68
Joined: 22-January 06
From: Latvia, Ogre
Member No.: 17,468



Ok, i gonna do it next time.
Go to the top of the page
 
+Quote Post
sxyloverboy
post Jan 23 2006, 05:28 PM
Post #4


Super Member
*********

Group: Members
Posts: 302
Joined: 17-June 05
From: Frankfurt, Germany
Member No.: 8,358



wow that gradient thing really turns me on. but i think it only works in IE. can someone confirm or unconfirm(wtf) it? wink.gif

and yeah as wassie said. maybe you want to explain the code a bit. put an explenation in comment tags so that people can copy your code and not have to remove the help or think that it dosent work because the explenation is messing it up.
Go to the top of the page
 
+Quote Post
mama_soap
post Jan 23 2006, 05:28 PM
Post #5


Super Member
*********

Group: Members
Posts: 282
Joined: 30-May 05
From: Bangalore
Member No.: 7,686



Am I correct in suspecting that the bit of code that has the word 'microsoft' will work best on IE? Just curious... I would agree that more detailed tuts would be appreciated smile.gif And info on cross-browser compatibility is like... um... crucial biggrin.gif

Anyway, kudos on a very nice attempt. Here's looking forward to more...

Cheers.
Go to the top of the page
 
+Quote Post
jlhaslip
post Jan 23 2006, 05:51 PM
Post #6


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,301
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:46.50



QUOTE(sxyloverboy @ Jan 23 2006, 10:28 AM)
wow that gradient thing really turns me on. but i think it only works in IE. can someone confirm or unconfirm(wtf) it?
*



I'll confirm that it doesn't work with IE5 on a Mac. I don't have access to other browsers on this machine or I would check them. Maybe later today.
Go to the top of the page
 
+Quote Post
truefusion
post Jan 23 2006, 07:43 PM
Post #7


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,978
Joined: 22-June 05
From: somewhere... Where am i?
Member No.: 8,528
myCENT:18.27



I fail to see any PHP scripts in both tutorials provided by Apollo. It's all HTML and JavaScript, as far as I'm concerned. Maybe a change in topic titles would be proper.
Go to the top of the page
 
+Quote Post
rvalkass
post Jan 23 2006, 07:46 PM
Post #8


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,237
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol
myCENT:45.20



I can confirm that the gradient thing works with IE6 on XP, but it brings up that yellow "Security Bar" thingy, and you have to allow it specifically. It does not work in Opera, FireFox or any other browsers by the looks of it.

Otherwise, some useful scripts there.
Go to the top of the page
 
+Quote Post
Tyssen
post Jan 24 2006, 01:36 AM
Post #9



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



Any style with 'filter' in it is MS only.