Goodies To Go! Newsletter #373
Goodies to Go (tm)
January 24, 2006 -- Newsletter # 373
http://www.internet.com
************************************************************
Featured this week:
* Q & A Goodies
* News Goodies
* Feedback Goodies
* Windows Tech Goodie of the Week
* And Remember This...
http://www.upperlowerbury.com/menusample.asp
and the source code is at:
http://www.upperlowerbury.com/menusample.html
<!--#include virtual="/ssi/head.asp" -->
Enclosed in the quotes is the pathname and filename of the file to be included. For good housekeeping purposes, I like to keep my "include"d pages in their own directory, named here "ssi".
Thanks for reading!
***********************************
Questions are taken from submissions to our Community
Mentors. You can ask a Mentor a question by going to
http://www.htmlgoodies.com/mentors/
document.all.sp1.innerHTML=('<img src=pt1.gif>');
document.all.sp2.innerHTML=('<img src=pt1.gif>');
document.all.sp3.innerHTML=('<img src=pt1.gif>');
document.all.sp4.innerHTML=('<img src=pt1.gif>');
document.all.sp5.innerHTML=('<img src=pt1.gif>');
document.all.sp6.innerHTML=('<img src=pt1.gif>');
document.all.sp7.innerHTML=('<img src=pt1.gif>');
document.all.sp8.innerHTML=('<img src=pt1.gif>');
is there any way like:
for( var n = 1; n < 9; n++)
{
document.all.sp + n + .innerHTML=('<img src=pt1.gif>');
}
A. You could try to use the eval() method like this:
eval("document.all.sp" + n + ".innerHTML=('<img src=pt1.gif>')");
width, height, postion and other attributes. Here is an example:
<script language="javascript"> function OpenWin(linkid)
{ NewWin=window.open (linkid,"newwin",config="width=200,height=250,location=no,status=no,directories=
no,toolbar=no,scrollbars=no,menubar=no,resizable=no,top=30,left=30");
NewWin.focus()
}
</script>
The variable "linkid" contains the page you want to load. This was passed to the function when the link was clicked on. Then in the body section of your document your link could look like this:
<A HREF="javascript:OpenWin('somepage.html')">Apples</A>
You would wrap the link around the word that you want to click on for more info. The HTML Goodies site does have a tutorial on window.open()
(see http://www.htmlgoodies.com/primers/jsp/hgjsp_11.html and http://www.htmlgoodies.com/primers/jsp/hgjsp_12.html -- Ed.)
Q. I have been working on trying to come up with a better menu for my index page. I used Sothink DHTMLMenu to generate one. I have it working, but it takes quite a while for the menu to load. What is my problem?
// preload images
var an_image1 = new Image(151,37);
an_image1.src = "images/navigation/options_home_over.jpg";
var an_image2 = new Image(151,37);
an_image2.src="images/navigation/easement_over.jpg";
var an_image3 = new Image(151,37);
an_image3.src="images/navigation/mutual_over.jpg";
This is a JavaScript that declares a variable as an image and specifies the size so the browser doesn't have to figure it out, and then give the variable a value consisting of a URL.
My second guess is that your images are large and taking a long time to download. Keep them small, like 3k each, or even eliminate them if you can.
Get rid of the "best viewed at" message. No visitor will change their screen setting just for your site, nor take the blame for he site not working at their screen setting. You just have to make it work at different sizes.
<STYLE>
.start {font-size: 8pt; color:#ffff00; background:#cc3333}
.end {font-size: 8pt; color:#cc3333; background:#ffff00}
</STYLE>
<SCRIPT LANGUAGE="javascript">
function highlightButton(s) {
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
</SCRIPT>
The above is placed above </head>
Then the <FORM></FORM> lines are placed where I need them to be below <BODY>
<FORM NAME=highlight onMouseover="highlightButton('start')" onMouseout="highlightButton('end')">
<INPUT TYPE="button" VALUE="Hot Computer Deals Of The Week!" onClick="location.href='http://www.tigerdirect.com/email/kb/promo.asp?ID=1671'">
</form>
I would like the button to start out as it appears for onMouseout="highlightButon('end')"
When the page loads, it is the standard grey default size button. Using <STYLE></STYLE> I now have some control over the button size by specifying font-size: 8pt; Of course, nothing happens until the cursor is passed over the button.
I tried some [ onload= ] ideas that didn't work. Is there a way to control the initial appearance of the button?
<form name="highlight" onmouseover="highlightButton('start')" onmouseout="highlightButton('end')">
<input class="end" type="button" value="Hot Computer Deals Of The Week!" onclick="location.href='http://www.tigerdirect.com/email/kb/promo.asp?ID=1671'" />
</form>
I'm not sure which version of HTML you are using... I'm used to writing in XHTML 1.0, so I've made the tags lowercase and added a / to the end of the INPUT.
Q. I currently have a couple of javascripts that are used throughout my website. One for a date and another for rollovers. Can these two be placed onto one external js page with a single link to it, or should each be on separate pages with its own individual link?
<script src="myscript.js" language="JavaScript"></script>
One thing you will have to be careful of though is that if both scripts use variable names that are the same one of them will have to be changed or you will have a conflict. If you are already using them both on the same page then this should not be a problem.
Discussion Goodies
***********************************
http://www.webdeveloper.com/forum/showthread.php?threadid=92743
http://www.webdeveloper.com/forum/showthread.php?threadid=92789
http://www.webdeveloper.com/forum/showthread.php?threadid=92791
http://www.webdeveloper.com/forum/showthread.php?threadid=92794
***********************************
[January 24, 2006] New effort to produce GPL Flash player a top free software priority.
Read the article:
http://www.internetnews.com/dev-news/article.php/3579371
'Botmaster' Pleads Guilty to Zombie Profits
[January 24, 2006] L.A. man faces 25 years for using botnet to spread spam, adware.
Read the article:
http://www.internetnews.com/security/article.php/3579591
A More Personal Side to Google News
[January 24, 2006] The company adds new customization options to its online news aggregator.
Read the article:
http://www.internetnews.com/xSP/article.php/3579501
IBM: Users Are The Weak Link in Security
[January 24, 2006] Widespead outbreaks are declining, but don't get too comfortable.
Read the article:
http://www.internetnews.com/security/article.php/3579356
180solutions Spyware Practice Far From Perfect
[January 24, 2006] CDT fingers the online advertising firm for causing 'immeasurable' harm to consumers.
Read the article:
http://www.internetnews.com/xSP/article.php/3579576
EMC Shows No Signs of Slowdown
[January 24, 2006] Technology stocks have been battered in recent weeks on earnings that have failed to live up to Wall Street's expectations, but EMC showed no signs of a slowdown in its quarterly report Tuesday.
Read the article:
http://www.internetnews.com/storage/article.php/3579471
Time Swings For Golf.com
[January 24, 2006] The acquisition expands the media giant's portfolio of online sports content.
Read the article:
http://www.internetnews.com/ec-news/article.php/3579536
Yahoo's Spanish Connection
[January 24, 2006] Yahoo Research Expands to Spain and Chile.
Read the article:
http://www.internetnews.com/dev-news/article.php/3579406
Feds Slam Microsoft on Compliance
[January 23, 2006] UPDATED: Response to Microsoft's monthly status report says Redmond's response time is slipping.
Read the article:
http://www.internetnews.com/ent-news/article.php/3579321
Report: Online Retail on Easy Street
[January 23, 2006] Online retail spending will enjoy a healthy few years.
Read the article:
http://www.internetnews.com/ec-news/article.php/3579351
Feedback Goodies
***********************************
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:
Windows Tech Goodie of the Week
***********************************
*** AND ***
Multi-User Login With Database-Based Authentication
*** AND ***
Using Apache-Style HTTP Authentication on IIS
***********************************
Robert Baden-Powell's "Scouting For Boys" was published on this day in 1908, prompting the start of the Boy Scout Movement. A war hero who defended Mafeking for 217 days during the South Africa war, Baden-Powell was already well known for a soldiers' handbook entitled Aids for Scouting. The book, which included lessons in tracking and observation, had become popular with boys, who invented many games based on the lessons in the book. Baden-Powell was inspired to write "Scouting For Boys" by this popularity. By the end of 1908 there were 60,000 Boy Scouts in troops all over England, and more troops were starting up around the world. A publisher from Chicago, William Boyce, became lost in a London fog and was guided to safety by a Boy Scout who refused Boyce's offer of a tip because it would "be improper for a Boy Scout to take a tip for a good deed." Inspired by this act, Boyce organized some regional American organizations, including the Woodcraft Indians and the Sons of Daniel Boone into the Boy Scouts of America, which was incorporated on February 8, 1910.
Born today were: in 1883 actress Estelle Winwood (Goodwin); 1913 TV producer Mark Goodson; 1915 actor Ernest Borgnine; 1918 Televangelist Oral Roberts; 1919 author Nora Beloff; 1924 English landowner, father of Diane, the 8th Earl Spencer; 1928 English zoologist Desmond Morris; 1941 singer Neil Diamond; 1941 singer Aaron Neville; 1943 actress Sharon Tate; 1947 musician Warren Zevon; 1949 actor/comedian John Belushi; 1960 German actress Nastassja Kinski; 1969 actress Stephanie Romanov; 1970 actor Matthew Lillard; 1993 daughter of Howard, Ashley Jade Stern;






Loading Comments...