************************************************************
Goodies to Go ™
January 31, 2006 — Newsletter # 374
************************************************************
Featured this week:
* Q & A Goodies
* News Goodies
* Feedback Goodies
* Windows Tech Goodie of the Week
* And Remember This…
are frequently techno-road warriors. This being so, I thought I’d share
with you my experiences and the end result of my attempts to replace my
trusty laptop. It’s not that it no longer functions, or that there is
something I cannot live without that it doesn’t do; it’s just that there’s
so much cool stuff out there that I had to get my fingers on some of it.
Actually, there is something it doesn’t do that I am no longer willing to
live without, and that is to respond to my touch on the screen.
present in the replacement, I determine that, apart from the standard stuff,
the highlight is my wireless broadband access provided by my carrier,
Verizon Wireless, via an adapter card in the PCMCIA slot. I’ve written
about this before, as some of you may remember. We’re not talking WiFi;
it’s a high speed (700-800kbps is typical) digital data service provided by
the cell-phone company and providing national (US) coverage. CAN NOT do
without that!
tablet PCs that I like. I cannot, however be without my keyboard – I do,
after all, spend a good deal of time writing! What I need therefore, is a
computer that can be a laptop part of the time, and a tablet the rest of the
time. Machines like this are called convertibles or, and this is the name I
like best, hybrids.
find that no matter where I looked in the price line, hybrid after hybrid
lacked the one feature of my notebook that I absolutely had to have — they
had no PCMCIA slot! I cannot understand why, when the entire purpose of the
hybrid is to provide the best of both worlds, such a crucial feature is left
out.
Google one last chance. I did a search that included both of the words,
hybrid and PCMCIA. Eureka! (Actually, Googlereka!) The search results
included a page in Gateway Computer’s website. Off we go, and…. in about
ten days time I will be the recipient of a gateway hybrid with a sparkling
PCMCIA slot and a nice fourteen inch screen. A little while after that,
I’ll let you know whether or not it meets my expectations — that is, is the
world wide world still a fine and rosy place in which to live and work, or
will I have encountered a techno-hades.
Thanks for reading!
***********************************
Questions are taken from submissions to our Community
Mentors. You can ask a Mentor a question by going to
https://www.htmlgoodies.com/mentors/
Q. Is there a way to use a background image without it repeating? I’d like
the bgimg to simply enlarge itself to encompass each visitor’s window,
instead of doing the tile effect.
resolution. In fact the site you sent has the image repeating. I even looked
at it on various resolutions and it repeated in all of them. That being
said, you can use some CSS – Cascading Style Sheet – to get an image to
only show once as a background.
Here is the code you should use:
<style type="text/css">
<!– body {background-image: url(images/your_image_name.gif);
background-repeat: no-repeat;} –>
</style>
Make sure you change the path and image name to suit your situation.
Q. This question most specifically refers to Javascript primer #27 on
https://www.htmlgoodies.com. I was
just wondering if there’s any way to make a link out of each of the pictures
of the slide show, or better yet, open a new window from each with
javascript? (by clicking on the picture of course.) I was also wondering if
there’s a way to make a back one picture button without losing the forward
one picture button. Here’s the code..
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
var num=1
img1 = new Image ()
img1.src = "btent1.jpg"
img2 = new Image ()
img2.src = "btent2.jpg"
img3 = new Image ()
img3.src = "btent3.jpg"
img4 = new Image ()
img4.src = "btent4.jpg"
function slideshow()
{
num=num+1
if (num==5)
{num=1}
document.mypic.src=eval("img"+num+".src")
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#120F56">
<CENTER>
<IMG SRC="btent1.jpg" NAME="mypic" BORDER=0 width="275" height="240"
alt=""> <A HREF="JavaScript:slideshow()"><IMG SRC="rightarrow.gif"
style="position:absolute; top:260px; left:300px" border="0"></A>
</CENTER>
</BODY>
</HTML>
image.
<html><head>
<title>Image and Link Slide Show</title>
<SCRIPT LANGUAGE="JavaScript">
var a=0
// Enter your images Here along with the directory if need be.
var imgs=new Array()
imgs[0]="owls3.jpg"
imgs[1]="hawks2.jpg"
imgs[2]="pic221.jpg"
imgs[3]="eagle1.jpg"
// Array used for preloading
var myimages=new Array()
// Do the preload
for(i=0;i<imgs.length;i++)
{
myimages[i]=new Image()
myimages[i].src=imgs[a]
}
// Enter your URLS and what you want to go in the ALT property. This is so
when they mouse over the image
// There will be a small description of the Image or URL. Make sure you
separate them with an
// ampersand "&" so that the script can separate them out before writing out
the link.
var urls=new Array()
urls[0]="http://www.requestcode.com&Requestcode"
urls[1]="http://www.javascriptkit.com&Javascriptkit"
urls[2]="http://www.dynamicdrive.com&Dynamic
Drive"
urls[3]="https://www.htmlgoodies.com&HTML
Goodies"
have to modify it.
function Doimglink()
{
if(a>imgs.length-1)
{a=0}
if(a<0)
{a=imgs.length-1}
newurls=urls[a].split("&")
if(document.layers)
{
document.mydiv.document.write("<A HREF=’"+newurls[0]+"’><IMG
SRC=’"+imgs[a]+"’ BORDER=’0′ ALT=’"+newurls[1]+"’></A>")
document.mydiv.document.close()
}
if(document.getElementById)
{
elm=document.getElementById("mydiv")
elm.innerHTML="<A HREF=’"+newurls[0]+"’><IMG SRC=’"+imgs[a]+"’
BORDER=’0′ TITLE=’"+newurls[1]+"’></A>"
}
}
// function used to display random image
function rannum()
{
len=imgs.length // how many entries in the array
prev=a // Save the previous image index
a=Math.round(Math.random()*(len-1))
// If the current image equals the previous image add one to get a
different image.
if(a==prev)
{a++}
}
window.onload=Doimglink
// In the DIV below you may have to add the top and left properties to the
style tag to position it // correctly in the window. You must keep it
positions as absolute for it to work in NS4.0+ browsers.
</SCRIPT>
</head>
<body onLoad="Doimglink()">
<CENTER><H1>Manual Slide Show With Links</H1>
<DIV ID=’mydiv’ STYLE="position:absolute;top:120;left:200"></DIV>
<DIV ID=’ctrldiv’ STYLE="position:absolute;top:120;left:100">
<A HREF="javascript:a++;Doimglink()">Next Image</A>
<BR>
<A HREF="javascript:a–;Doimglink()">Previous Image</A>
<BR>
<A HREF="javascript:rannum();Doimglink()">Random Image</A>
</DIV>
</body>
</html>
Q. I am trying to load a new page into a frame with:
top.frame1.document.location="root/subfolder1/subfolder2/filename.htm";
and for some reason it works only if I put an alert before the statement.
top.frame1.location="root/subfolder1/subfolder2/filename.htm";
You can also use:
parent.frame1.location="root/subfolder1/subfolder2/filename.htm";
Either one should work.
and not the regular box with copy and paste on it?
from taking your articles from your web pages. Every time your web page is
displayed on someones PC the page is download to their cache so that it can
be displayed much more quickly. The same goes for any images that are
displayed on the page. Having said that here is a link to a site that has
some scripts that can help:
http://www.dynamicdrive.com/dynamicindex9/index.html
[It’s not a free solution, but you can also provide some protection by
creating password protected PDFs with Adobe Acrobat and including your
copyright information on the pages of your articles. See
http://www.adobe.com for more
information. – Ed.]
Discussion Goodies
***********************************
great place to get help from others who, just like you, are developing web
pages. Many different topics appear in the forum, and a new one will appear
if you create it! Here’s a sample of recent topics:
http://www.webdeveloper.com/forum/showthread.php?threadid=92827
http://www.webdeveloper.com/forum/showthread.php?threadid=92767
http://www.webdeveloper.com/forum/showthread.php?threadid=92593
http://www.webdeveloper.com/forum/showthread.php?threadid=92821
***********************************
[January 31, 2006] It’s the most significant IE update since the ‘end’ of
the browser wars.
Read the article:
http://www.internetnews.com/dev-news/article.php/3581801
Security Vendors Team Against Spyware
[January 31, 2006] Security vendors try to reduce the "enormous confusion"
over what is, and isn’t spyware.
Read the article:
http://www.internetnews.com/security/article.php/3581871
Microsoft Case Forces Office Users to Upgrade
[January 31, 2006] A patent enforcement forces the company to provide
upgrades to Office 2003 and Access 2003.
Read the article:
http://www.internetnews.com/bus-news/article.php/3581776
FCC: Fines For AT&T, Alltel
[January 31, 2006] Telcos fail to file proper paperwork certifying
confidentiality of customers’ records.
Read the article:
http://www.internetnews.com/bus-news/article.php/3581821
Bush May Pump Tech in State of the Union Address
[January 31, 2006] President expected to call for America to regain its
flagging global leadership in IT.
Read the article:
http://www.internetnews.com/bus-news/article.php/3581636
IBM iSeries Changes For The Small Set
[January 31, 2006] The server maker speeds up its iSeries machines and takes
a number of efficiency measures for the line.
Read the article:
http://www.internetnews.com/ent-news/article.php/3581606
From Spam to Sundance
[January 31, 2006] Tech firm uses Bayesian software to pick winners at
Sundance Film Festival.
Read the article:
http://www.internetnews.com/ent-news/article.php/3581661
Suit hits Amazon, Target
[January 30, 2006] Registrar Systems wants to halt Amazon.com’s distribution
of personalization services.
Read the article:
http://www.internetnews.com/ec-news/article.php/3581641
ID Theft And Internet Fraud Declining?
[January 30, 2006] New studies indicate that the Internet isn’t as dangerous
as other places.
Read the article:
http://www.internetnews.com/ec-news/article.php/3581601
Microsoft Source Code Thief Heads to Prison
[January 30, 2006] Judge slaps two-year term on man convicted of selling
code for $20.
Read the article:
http://www.internetnews.com/dev-news/article.php/3581466
Feedback Goodies
***********************************
medium? Ploof! It now is!
If you would like to comment on the newsletter or expand/improve on
something you have seen in here, you can now send your input to:
those relating specifically to this newsletter from all the rest. When you
send email to this address it may wind up being included in this section of
the newsletter, to be shared with your fellow readers. Please don’t send
your questions to this address. They should be sent to our mentors: see
https://www.htmlgoodies.com/mentors/
Windows Tech Goodie of the Week
***********************************
controls and we’ll examine some of the subtleties that arise when creating
read-only user interfaces, along with workarounds. Read on to learn more!
*** AND ***
Format Phone Numbers ASP.NET Sample Code
it into a nice uniform format. It’s great to use for form validation, before
placing the number into a database, or to create good looking reports.
*** AND ***
Windows and Web-based applications to Web services. It is no longer good
enough to put business rules at the application level and assume the rules
will be implemented correctly and consistently across all data entry points.
This article focuses on a methodology for ensuring data integrity by
enforcing business rules at the database level.
And Remember This …
***********************************
London, England, Guy Fawkes leapt to his death. The date was November 5th,
1605. The British Parliament was due to start a General Assembly the next
day. Justice of the Peace Sir Thomas Knyvet found Guy Fawkes in the cellar
of the Parliament Building in Westminster, along with two tons of
gunpowder. He was detained. The investigation that followed revealed,
largely by Fawkes explanations, the "Gunpowder Plot" as a conspiracy by the
English Catholics to annihilate the entire Protestant parliament, along with
the Protestant King, James I, who would have been in attendance. The day,
November 5th, is celebrated across England with bonfires and fireworks. An
effigy of Guy Fawkes is traditionally set atop the bonfire. The celebration
remembers the discovery and foiling of the Plot, although there are those
who say it celebrates the attempt!
Bligh’s fleet reached Curagao; 1851 Gail Borden announced the
invention of evaporated milk; 1871 Millions of birds flew over
western San Francisco, darkening the sky; 1874 Jesse James and his
gang robbed a train at Gads Hill MO; 1928 Scotch tape was first
marketed by the 3-M Company (Minnesota Mining and Manufacturing); 1950
President Truman revealed that he ordered the Atomic Energy Commission
to develop the hydrogen bomb; 1953 Hurricane-like winds flooded the
Netherlands drowning nearly 2,000; 1964 US report "Smoking & Health"
connected smoking to lung cancer; 1971 "My Sweet Lord" by George
Harrison hit #1 on UK pop chart; 1990 The first McDonald’s in Russia
opened in Moscow, world’s biggest McDonald’s;
Born today were: in 1797 composer Franz Peter Schubert……. ;
1872 novelist Zane Gray; 1903 actress Tallulah Bankhead; 1911
bookseller Christina Foyle; 1915 Orchestra leader/trumpeter Bobby
Hackett; 1921 actress Carol Channing; 1921 actor John Agar;
1926 English actress Jean Simmons; 1937 actress Suzanne Pleshette;
1946 musician Terry Kath (Chicago); 1951 English musician Phil
Collins; 1956 English musician John Lydon (Johnny Rotten); 1959
actor Anthony LaPaglia; 1971 actress Minnie Driver;