473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Foto Function

//-------------------------
function photoIt($_pic,
$_float = 'right',
$_alt = 'Default Text') {
if ( file_exists($_pic) ) {
list($_w, $_h, $_t, $_a) = getimagesize($_pic);
$_wide = $_w + 11 + 17;
$_high = $_h + 12 + 16;
$_w .= "px";
$_h .= "px";
$_wide .= "px";
$_high .= "px";
print "<SPAN STYLE='float: $_float; border: 0px; width:$_wide;
height: $_high; ";
print "margin: 0px; padding: 0px;'>";
print "<IMG STYLE='margin: 0px; height: 12px; width: 11px;'
SRC='i/phTopLef.jpg'>";
print "<IMG STYLE='margin: 0px; height: 12px; width: $_w;'
SRC='i/phTop.jpg'>";
print "<IMG STYLE='margin: 0px; height: 12px; width: 17px;'
SRC='i/phTopRig.jpg'>";
print "<IMG STYLE='margin: 0px; height: $_h; width: 11px;'
SRC='i/phLeft.jpg'>";
print "<IMG STYLE='margin: 0px; height: $_h; width: $_w;'
ALT='$_alt' SRC='$_pic'>";
print "<IMG STYLE='margin: 0px; height: $_h; width: 17px;'
SRC='i/phRight.jpg'>";
print "<IMG STYLE='margin: 0px; height: 16px; width: 11px;'
SRC='i/phBotLef.jpg'>";
print "<IMG STYLE='margin: 0px; height: 16px; width: $_w;'
SRC='i/phBottom.jpg'>";
print "<IMG STYLE='margin: 0px; height: 16px; width: 17px;'
SRC='i/phBotRig.jpg'>";
print "</SPAN>";
} else {
print "<IMG BORDER=0 SRC='bogusPic' ALT='NO PHOTO'>";
}
}

The above function applies a photo effect on around an image. This
effect can be seen at : http://wallshall.com/photoIt/index.phtml

You can get... for free... the images necessary to produce this effect
at http://wallshall.com/photoIt/photoIt.tar

photoIt.tar contains the following files:

phBotLef.jpg
phBotRig.jpg
phBottom.jpg
phLeft.jpg
phRight.jpg
phTop.jpg
phTopLef.jpg
phTopRig.jpg
photoIt.php

I hope you find this useful.

-Ken

Jul 17 '05 #1
1 1529
I noticed that Message-ID:
<11**********************@c13g2000cwb.googlegroups .com> from
kh***@dis.umsmed.edu contained the following:

You can get... for free... the images necessary to produce this effect
at http://wallshall.com/photoIt/photoIt.tar


Nice, and change the effect by just adding different images.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
5
by: phil_gg04 | last post by:
Dear Javascript Experts, Opera seems to have different ideas about the visibility of Javascript functions than other browsers. For example, if I have this code: if (1==2) { function...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
2
by: sushil | last post by:
+1 #include<stdio.h> +2 #include <stdlib.h> +3 typedef struct +4 { +5 unsigned int PID; +6 unsigned int CID; +7 } T_ID; +8 +9 typedef unsigned int (*T_HANDLER)(void); +10
1
by: Joskexp | last post by:
Hi How can I print a picture(foto) and text on a paper The picture is a Jpeg file on the hardisk and also in a picturebox and the text is in different textboxen Th Joske
1
by: angus | last post by:
i'm trying to make an photo album, and i want a thumbnail view of al the foto's in an album. i just don't know how to do that. i've treid a few things: -i've used picture box'ses. every photo that...
8
by: Olov Johansson | last post by:
I just found out that JavaScript 1.5 (I tested this with Firefox 1.0.7 and Konqueror 3.5) has support not only for standard function definitions, function expressions (lambdas) and Function...
3
by: Beta What | last post by:
Hello, I have a question about casting a function pointer. Say I want to make a generic module (say some ADT implementation) that requires a function pointer from the 'actual/other modules'...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.