It may be common knowledge that Mozilla based browser cut off floated elements that span more than one page when printing but what you may not now is that elements (at least the parent) must have relative positioning declared as well if they span over one page. So to be on the safe when writing your print style sheets, use float: none; and position:relative; on your containing element(s).
Source
Tuesday, July 24, 2007
Monday, June 25, 2007
Get the index number of an element
Heres a little gem I found at :
http://forums.htmlhelp.com/lofiversion/index.php/t746.html
This short little javascript allows you to detect / retrieve / get the index number of an element. Which can defiantly be useful in a number of different applications.
var p=document.getElementsByTagName('p');
for(var i=0; i
{
p[i].pnum=i;
p[i].onclick=function()
{
alert(this.pnum);
}
}
http://forums.htmlhelp.com/lofiversion/index.php/t746.html
This short little javascript allows you to detect / retrieve / get the index number of an element. Which can defiantly be useful in a number of different applications.
var p=document.getElementsByTagName('p');
for(var i=0; i
{
p[i].pnum=i;
p[i].onclick=function()
{
alert(this.pnum);
}
}
getElementsByClass
Heres a little piece of JavaScript I found at :
http://javascript.about.com/library/bldom08.htm
I'm sure it can be of use to someone else out there. This coded creates your own getElementsByClass method which is not built into javascript.
document.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i <>
var classes = elem[i].className;
if (myclass.test(classes)) retnode.push(elem[i]);
}
return retnode;
};
http://javascript.about.com/library/bldom08.htm
I'm sure it can be of use to someone else out there. This coded creates your own getElementsByClass method which is not built into javascript.
document.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i <>
var classes = elem[i].className;
if (myclass.test(classes)) retnode.push(elem[i]);
}
return retnode;
};
Thursday, June 7, 2007
The Flash Tattoo Factory
Finally got around to updating the Tattoo Factory on my web site:
Chicago Web Site Design
I improved some of the functionality and added a couple of features feel free to play around with it and let me know what you think.
Chicago Web Site Design
I improved some of the functionality and added a couple of features feel free to play around with it and let me know what you think.
Tuesday, April 24, 2007
Thunderbird 2.0
New program that I must recommend to any and everyone is Thunderbird 2.o portable edition. Add the webmail, lighting, and minimize to tray extensions and in my opinion you have the best email client there is.
Tuesday, March 20, 2007
Add IM links to your web page
MSN
(These only seem to work in IE)
msnim:chat?contact=[E-Mail Address]
msnim:add?contact=[E-Mail Address]
msnim:voice?contact=[E-Mail Address]
msnim:video?contact=[E-Mail Address]
Yahoo!
ymsgr:SendIM?[your Yahoo ID]
ymsgr:sendIM?[your Yahoo ID]&m=[Your+Message]
ymsgr:addfriend?[your Yahoo ID]
Skype
skype:[yourID]?call
AIM
aim:goim?screenname=[AOL Screen name]
aim:goim?screenname=[AOL Screen name]&message=[Your+Message]
aim:addbuddy?screenname=[AOL SCREEN NAME]
ICQ
http://www.icq.com/people/cmd.php?uin=[ICQ Number]&action=message
http://www.icq.com/people/cmd.php?uin=[ICQ Number]&action=add
If any one know a way to get the MSN links to work in Firefox please let me know.
(These only seem to work in IE)
msnim:chat?contact=[E-Mail Address]
msnim:add?contact=[E-Mail Address]
msnim:voice?contact=[E-Mail Address]
msnim:video?contact=[E-Mail Address]
Yahoo!
ymsgr:SendIM?[your Yahoo ID]
ymsgr:sendIM?[your Yahoo ID]&m=[Your+Message]
ymsgr:addfriend?[your Yahoo ID]
Skype
skype:[yourID]?call
AIM
aim:goim?screenname=[AOL Screen name]
aim:goim?screenname=[AOL Screen name]&message=[Your+Message]
aim:addbuddy?screenname=[AOL SCREEN NAME]
ICQ
http://www.icq.com/people/cmd.php?uin=[ICQ Number]&action=message
http://www.icq.com/people/cmd.php?uin=[ICQ Number]&action=add
If any one know a way to get the MSN links to work in Firefox please let me know.
Subscribe to:
Posts (Atom)