UK Webmaster Talk - Online Marketing - SEO


 

Fading Images

This is a discussion on Fading Images within the Website Design Articles forums, part of the Webmaster Articles/Tutorials category; Originally Posted by Zaltan PHP is a pre-processing language, so when someone tries to access a PHP page, the PHP ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Webmaster Articles > Webmaster Articles/Tutorials > Website Design Articles

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 17-04-2005, 02:52   #21 (permalink)
WMT Addict
 
Join Date: Apr 2005
Location: Singapore
Posts: 238
iTrader: 0 / 0%
Aaron has a spectacular aura about
Send a message via ICQ to Aaron Send a message via AIM to Aaron Send a message via MSN to Aaron Send a message via Yahoo to Aaron
Default

Quote:
Originally Posted by Zaltan
PHP is a pre-processing language, so when someone tries to access a PHP page, the PHP is evaluated, and the page is sent to the person without any PHP, just the HTML which has resulted from the PHP. For example the PHP page with this script:
PHP Code:
<html>
 <head>
  <title>Hello World</title>
 </head>
 <body>
  <?
   
echo "5 times 7 equals " . (5*7) . ".";
  
?>
 </body>
</html>
Would be sent to the person trying to visit the page as:
HTML Code:
<html>
 <head>
  <title>Hello World</title>
 </head>
 <body>
 5 times 7 equals 35.
 </body>
</html> 
And that's the Basics of Creating a Website, Part I.

Without HTML, every page would be an unformatted text document.
Understood.
Aaron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-08-2005, 09:50   #22 (permalink)
Newbie
 
Join Date: Aug 2005
Posts: 1
iTrader: 0 / 0%
phroz3n is an unknown quantity at this point
Talking

Quote:
Originally Posted by Aaron
How can this be integrated into PHP-Nuke?
here is your solution for PHP NUKE SYSTEM..

put your javascript...on includes/javascript.php
add this line before ?>

echo "<SCRIPT language=JavaScript>\n";
echo "<!--\n\n";
echo "nereidFadeObjects = new Object();\n";
echo "nereidFadeTimers = new Object();\n";
echo "function nereidFade(object, destOp, rate, delta){\n";
echo "if (!document.all)\n";
echo "return\n";
echo "if (object != \"[object]\"){ \n";
echo "setTimeout(\"nereidFade(\"+object+\",\"+destOp+\" ,\"+rate+\",\"+delta+\")\",0);\n";
echo "return;\n";
echo "}\n";
echo "clearTimeout(nereidFadeTimers[object.sourceIndex]);\n";
echo "diff = destOp-object.filters.alpha.opacity;\n";
echo "direction = 1;\n";
echo "if (object.filters.alpha.opacity > destOp){\n";
echo "direction = -1;\n";
echo "}\n";
echo "delta=Math.min(direction*diff,delta);\n";
echo "object.filters.alpha.opacity+=direction*delta;\n" ;
echo "if (object.filters.alpha.opacity != destOp){\n";
echo "nereidFadeObjects[object.sourceIndex]=object;\n";
echo "nereidFadeTimers[object.sourceIndex]=setTimeout(\"nereidFade(nereidFadeObjects[\"+object.sourceIndex+\"],\"+destOp+\",\"+rate+\",\"+delta+\")\",rate);\n ";
echo "}\n";
echo "}\n";
echo "//-->\n";
echo "</SCRIPT>\n";

then find n add this line to you images directory on your theme file....

<img src=\"/your pic.gif\" width=\"100\" border=\"0\" style=filter:alpha(opacity=100) onMouseOut=nereidFade(this,100,20,10) onMouseOver=nereidFade(this,20,5,5)>

sorry my english so poor..

Last edited by phroz3n; 03-08-2005 at 09:55.
phroz3n is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2005, 18:44   #23 (permalink)
WMT Addict
 
Join Date: Apr 2005
Location: Singapore
Posts: 238
iTrader: 0 / 0%
Aaron has a spectacular aura about
Send a message via ICQ to Aaron Send a message via AIM to Aaron Send a message via MSN to Aaron Send a message via Yahoo to Aaron
Default

I don't understand the second part.
Aaron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2005, 19:15   #24 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

Why are you having it echo every line?! Thats way more work than it needs to be. You could do 1 of two things. Either just close the ?> php tag and what follows would just print to the page normaly and reopen the tag when theres more php. Or do 1 echo command with ' ' quotes instead of " ".
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
fading, images

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Fading colours??? Lewis Website Design Forum 2 27-06-2005 05:26
Fading Links asgsoft Website Design Articles 5 14-06-2005 17:50
Expanding Images Aaron Programming Articles 0 23-04-2005 21:53
HTML Images Bmg Programming Articles 0 07-04-2005 16:24


All times are GMT +1. The time now is 20:18.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41