sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 11, 2007 21:19:25 GMT -5
I am going through, step by step, the procedures I need to complete before submitting for Phase 1 Review. I went to the thread that gave me the text to get the bookmark working; and I made sure that I typed my url location into the code, but nothing is happening. Please help!
|
|
|
Post by Tom "CloudHand" on Sept 11, 2007 21:42:03 GMT -5
Steve,
You have a fully functional and working bookmark on your TOPS basic web page.
The easiest thing to do would be to go back to that page, view the source, copy the bookmark code from the source, and then paste that code into the source of your web page.
Tom
|
|
|
Post by talfighel on Sept 12, 2007 9:06:17 GMT -5
Hi Steve
If your site's "bookmark" botton does not work and you have been trying forever to do this right, then here is the code that you can add to your site and it will work:
<p align="center"><font size="2">Make sure to bookmark this site and come back weekly to review our updated listings. <SCRIPT language=javascript> function addfavorites(){window.external.addfavorite ('YOUR SITE HERE ', ADD HERE A SMALL DESCRIPTION OF YOUR SITE ');} </SCRIPT><FORM><INPUT onclick=addfavorites(); type=button value="Click Here to Bookmark this site!"> </FORM></p></font>
Tal
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 15, 2007 21:42:35 GMT -5
After working with my site for a while, I decided to go back to the original site given to e by TOPS and paste the original code in there. I have uploaded that information to IPOWER, but I am not sure that the bookmark is working still. Would someone please check the site and see if it is just that I cannot bookmark from my computer, or is is the same for you as well. Also, I am concerned with the fact that when I view my website, it states, 'Done, but with errors on page.' I am not sure what those 'errors' are.
Steve Borgman
|
|
|
Post by troyzone on Sept 15, 2007 22:30:06 GMT -5
Hi Steve, Your bookmark button is not working for me either. The "urlAddress is undefined" error is the cause of this, which is caused by having the comment tag <!-- and var urlAddress = this.location; together on the same line. They need to be on separate lines. I find that NVU tends to reformat the code and cause this problem a lot, as I see this issue quite often. See the following thread for more info on this particular error: erichw33.proboards53.com/index.cgi?board=web&action=display&thread=1173753974&page=1#1173801583There is some help for the other errors in the above thread as well. Note that you can double-click on the "Errors on page" message in the lower-left corner of Internet Explorer and it will pop up a box with details about the errors, with Previous and Next buttons to cycle through them all. Usually these errors are caused by incorrect punctuation in your script code such as your bookmark code or your mouseover code. This is often the result of such things as missing or extra single quote ' and double quote " marks, although other syntax errors in your HTML could cause them. Such quotation marks need to be paired together in order to function properly. For example, if there is an opening single quote then there has to be a closing single quote soon thereafter...the same goes for double quotes. They have to be nested properly inside each other, for example " ' ' " or ' " " ' One common cause of these errors is putting apostrophes in your mouseover words, for example Mom's. The ' confuses the browser, which interprets it as a single quote. This often makes for an odd number of quotation marks, which is incorrect since quotation marks need to be paired, i.e. an opening quote and a closing quote. Remove any such apostrophes from words in your mouseover code and this should alleviate some of your errors. There are many errors in your page, so I suggest looking at the source code of a link with working mouseover code (such as on your original TOPS site) and comparing it to each of your own. You could also look at a few examples in the above-mentioned thread, which includes corrections for someone else that was experiencing similar issues. You'll have to go through your links one by one and correct the mouseover code, so it will take some time to do this. You could copy a working mouseover code sequence and paste it into each link that has issues and change the words that appear upon mouseover as necessary. There may be other problems causing errors in your page, but most if not all errors are usually caused by incorrect punctuation or syntax in mouseover code and/or bookmark code. There are line numbers given in the error box in IE, but they may not necessarily correspond to the line numbers in your particular editor's source code view. One thing you can do is move the mouse over each of your links and watch the status bar to see if the mouseover code works as expected or not...if it does not then the link you're hovering over is likely one that has an error in the code that needs corrected. Doing this may help you locate some of the problematic code quicker. Hope this helps. Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 16, 2007 11:45:36 GMT -5
Troy, I have exalted you to 127 with the karma! Thanks for your extensive help. I now have a fun project to work on this week! I hope to have the website complete for submission to level one in the next 2 weeks
|
|
|
Post by troyzone on Sept 16, 2007 12:11:45 GMT -5
lol thanks...you are welcome Steve, good luck getting those errors sorted out. Hopefully you'll be able to resolve most or all of them based on the info above.
Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 16, 2007 19:36:45 GMT -5
Troy, thanks for your suggestion. I changed the code so that the comment tag <!-- and var urlAddress = this.location are on separtate lines. I saved and uploaded the changes to IPOWER, but it still does not seem to have taken. Also, when I go to the mouseovers, they all appear to be working, so I am still mystified at why there are so many errors I'll read the thread you posted more closely for the many errors I am having, but I would like your input on why the bookmark still seems to be non-functional. Thanks!
|
|
|
Post by troyzone on Sept 16, 2007 20:04:33 GMT -5
Hi Steve, The <!-- and var urlAddress code is all on the same line again in your source code. I'm not sure why NVU insists on doing this...you can try opening the page up in Notepad and fixing this, then saving it again from there before opening it in NVU. Make sure to select "All Files" in the Save box before doing so, otherwise you'll likely end up with a .txt filename extension at the end of your page name. You'll likely have to select "All Files" when first opening it as well. You might even try putting an extra blank line in between the <!-- and var declaration to see if that helps any, but maybe NVU will still change it the way it wants to. This is one 'feature' that I really dislike about that particular editor program...even checking the box in the Preferences to retain original source code formatting doesn't seem to do any good. Or perhaps, that option also makes NVU "remember" what your source formatting was like when you first opened it, and reverts it back...rather than the setting simply meaning you don't want NVU to change the code around like we first thought. There might be an extra unwanted side effect of that feature ...I'm really not sure at this point. According to the NVU Help Center (via NVU's Help menu / Help Contents), "This option preserves line breaks and the page's original formatting for the HTML source code." Maybe in this case, "original" means it will change something back to what it originally was, even if you edit it yourself during your session...who knows In any case, I'd use Notepad to correct your bookmark code issue at this point to see if that helps. Regarding your mouseover code errors, you'll need to go over every single link on your page and make sure the mouseovers are working properly...titles, Click Here's, banners, everything. I just did a spot check of a few rows in the middle table and found all three of the following rows of titles have malformed mouseover code: "Top Rated" Work at Home Make Money Online Work at Home Income I located them by noticing the actual URLs were being displayed in the status bar of IE at the bottom, rather than a mouseover phrase as I expected. The mouseovers of the Click Here links for those three ads all seem to work, although the mouseover for the third one says "Have A Strong Future!" for SFI instead of a mouseover phrase for Paid Surveys Etc. as the link actually goes to, so you'll want to correct this as well. To that end, make sure all of your links, mouseover phrases, titles that pop up when you hover over a link, etc. all pertain to the program that you intended. Many times people get copying and pasting code or moving ads around and forget to edit ALL portions of the code appropriately. Also note that even if a mouseover is working properly, that doesn't necessarily mean that there is no error present in that particular link...it could have valid mouseover code, but there may be other, *extra* code there too that is invalid....this is possible as well. In other words, you pretty much have to go through your source code with a fine tooth comb to fix all of these errors. The line numbers that the error box in IE gives you might provide a rough clue as to their locations, but your editor's line numbers may differ significantly. I tested your bookmark on a temp copy of your page I made by editing the <!-- and var declarations onto separate lines using Notepad and it then worked fine for me. Even after you fix that though, there are still around 21 errors on the page found by IE, so it looks like you have your work cut out for you if you wish to correct all of these errors... They may not take too long though, provided you can find them fairly quickly as I did the three mentioned above. Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 22, 2007 22:20:23 GMT -5
Troy, and others: I am back, after reading over my script until my eyes are redder than usual. The good news is that my Bookmark is working. The bad news is that a lot of the graphics on my page have disappeared I have looked over my mouseover syntax. Unfortunately, I think that my html knowledge is limited such that I don't know what I am looking at. I did compare the mouseover text to the original text I had in the first template I received for TOPS, and I cannot see a big difference. I tried to join the NVU forum to get more insight into how NVU may be modifying the text, but I have not been allowed to join by the administrators yet. Are there any other suggestions you may have for me. It has been hard to locate where the errors are, and how to correct them. Steve
|
|
|
Post by troyzone on Sept 23, 2007 2:27:53 GMT -5
Hi Steve, I'm glad to see that your bookmark feature is now working in Internet Explorer and Firefox. However, I just did a quick count using the Previous/Next buttons in the little error box that appears in IE by double-clicking on the yellow ! in the lower left corner of the browser window...there are still 21 errors as was mentioned in my last post in this thread, so it appears that you have not been able to correct any of these errors thus far. Note that the mouseover code is entirely optional and you can get rid of it all if you wish. All it does is display a friendly message related to your offer instead of the link in the status bar at the bottom of the browser window when the link is moused over, at least in Internet Explorer...I don't believe Firefox displays anything at this point, perhaps in future versions. Such code (well, pretty much any HTML code really) not only has to be close to a working sample, but in fact the syntax usually has to be *exactly* the same in order for it to work properly. This is one of those situations where 'close' only counts in the game of horse shoes I explained earlier in this thread about how to properly nest single and double quotation marks and how an apostrophe such as the ' in Mom's can cause these errors. For instance, if you have two sets of quotation marks nested, a pair of single quotes and a pair of double quotes, one has to be nested inside the other in order to work properly. If you start with a " and then a bit further along in your code have a ' then the next quote should be a ' and the last quote should be a " like this: " ' ' " I hope that makes sense. Also, your mouseover code for a given link has to all be on the same line, or at least any part in quotes...if you break mouseover code up over two or more lines it can cause an error. Apparently Javascript doesn't like having text in quotes started on one line and ended on the next line, as I've run into errors with code broken up in this manner before. Just make sure that the mouseover code for a given link is all on the same line to avoid this problem. Given the rather large number of errors on your page and the limited amount of time I have (I'm going out of town early tomorrow), I'm afraid I don't have time to go through all of the errors, but I can fix one of them and you can use that as an example of how to fix many of the others. First however, here is some sample mouseover code you can also use for reference: onmouseover="window.status='Prepare for a Strong Future!'; return true" onmouseout="window.status=''" The above mouseover code would go someplace inside the opening link <a> tag between the 'a' and the '>'. This sample code would print the words "Prepare for a Strong Future!" in your browser's status bar instead of the link contained in the href part of the code. This text of course can be changed to display whatever you wish, but to be safe, stay away from apostrophes and other non-alphanumeric characters since apostrophes tend to be misinterpreted as single quotes by the browser and other symbols could cause similar problems. The exclamation mark in this sample seems to work okay though. Note how the quotes are laid out in the above sample, which incidentally comes from the first three ads in a row table title on the basic TOPS site. First is a double quote " then a single quote ' then another single quote ' then another double quote ". This takes care of the onmouseover section. Then the onmouseout section is the same way...it has a double quote " then two single quotes together with nothing in between them like this '' signifying that nothing should be displayed, then a closing double quote ". If you closely follow this sample mouseover code, you should be able to check the mouseover code in all of the links on your web page and correct them as needed. This should eliminate most of your page's errors being indicated by IE, if not all of them. Three sections of mouseover code causing errors that I've noticed are all three titles in the 4th row of your three ads in a row table. The linked titles that need their code fixed appear as follows: "Top Rated" Work at Home Make Money Online Work at Home Income Note that I mentioned these already in my previous post in this thread...see it for more info. One interesting thing about the titles for these three ads is while the mouseover code is not working in the title links, the mouseover code is working fine in the "Click Here" links for those ads, and since the link is the same for each, you can simply copy the code from the "Click Here" and paste it in place of the malfunctioning title link code if you wish. I'll fix the first one in this row and you can try the rest...here is the code for the ad title link that the mouseover is not working in: <a title="Data Entry Made Easy!" onmouseout='window status="' href="http://www.dataentrymadeeasy.com/coupon/11016" target="_blank">"Top Rated" Work at Home</a> Now, here is the code for the "Click Here" link for that same ad, in which the mouseover is working fine: <a style="font-weight: bold;" onmouseover="window.status='Data Entry Made Easy!'; return true" onmouseout="window.status=''" target="_blank" href="http://www.dataentrymadeeasy.com/coupon/11016" title="Data Entry Made Easy!">Click Here</a> To get the mouseover code for your "Top Rated" Work at Home ad title to work and correct the error, replace the first section of code I quoted above with the following corrected version: <a title="Data Entry Made Easy!" onmouseover="window.status='Data Entry Made Easy!'; return true" onmouseout="window.status=''" href="http://www.dataentrymadeeasy.com/coupon/11016" target="_blank">"Top Rated" Work at Home</a> The problem is the entire onmouseover section was missing, plus the quotes at the end of the onmouseout section was missing a quote and not nested correctly, so there were actually two errors in this link code. Quotes can either be nested as " ' ' " or ' " " ' but the onmouseout code above had the quotes like this: ' " ' and so were missing a double quote in the middle, in addition to the missing onmouseover section. When troubleshooting problems with nested quotation marks, I find that it helps to "tune out" and ignore the contents in between the quotation marks and just look at the quotes themselves and make sure they match up in pairs and are nested properly. Of course, once you verify this, you do have to look at the contents of the quotes as well and make sure that there are no characters like apostrophes that may potentially confuse the browser. The above should take care of the errors in your "Top Rated" Work at Home ad title's code. The rest of the links in your page containing malfunctioning mouseover code can likely be corrected in a similar manner. I've now fixed the errors in the above section of code and given you some additional pointers for locating similar such errors...I hope this helps to further point you in the right direction. I'm not sure how much more specific I can be at this point, so if the above doesn't help then you may have to look up some tutorials or other help online or elsewhere for Javascript mouseover code and any other such code that is causing your errors. I wish I had the time to go through and fix all of the errors in everyone's sites but unfortunately that's not the case...the best thing I can do for you regardless is to show you what to look for so that you'll be able to fix these and future such errors on your own. This reminds me of that old saying, "Give a man a fish and he'll eat for a day...teach a man how to fish, and he'll eat for a lifetime." Hope this helps. Troy P.S. The missing images on your site were actually due to a temporary issue with the TOPS site that has since been corrected. As you may know, the TOPS web site was just moved to a new hosting service on Friday night, and several of the images on your page come from the toponlineprofits.com domain. The TOPS images folder temporarily went missing, so after seeing your post and checking my own basic TOPS site and noticing the missing images, I alerted Tom to this issue and he had it fixed within minutes, so your images should now be showing. I would recommend saving the images to your own web hosting account and linking to them there in order to avoid depending on outside domains to display your images (plus hosting your own files tends to speed up your page loading a bit). There are lots of threads on the forum that explain how to do this...one such thread you can look at that also contains links to several other threads is here: erichw33.proboards53.com/index.cgi?board=p1&action=display&thread=1170361753&page=1#1170400886
|
|
|
Post by talfighel on Sept 23, 2007 9:07:02 GMT -5
Steve, The one thing that I noticed when I took a look at your source code, is that all of you banners that you can't see now are coming from the affiliate site, if I am not mistaken. What you want to do is to save them on your Ipower server. You just need to go into your Ipower server and log in. Then go to each banner that you have on your site and right click on it. Click on save picture as. Once you save it on your computer, go to your ipower server and upload that banner to your server. That is another thing that you want to do if you want your load time to be faster. What do I mean? When you get a visitor to your site, if all of your banners, and icons are coming from the affiliate sites then it could take 4-8 seconds longer to load your home page. If a visitor has a slow connection from their computer, it would be slower for them. if you had all of your banners and icons saved and coming from your server, it would take less then 2 seconds for your page to load. That is why it is so important to save them on your server. Faster page load = Happier visitor Tal
|
|
|
Post by troyzone on Sept 23, 2007 11:35:46 GMT -5
Hi Steve,
I was hoping that the images issue was resolved, but apparently there's still a problem as the images are still not showing on your site. You may have also noticed that the moderator stars under my and Tal's forum names aren't showing up either...these are also linked to images stored on toponlineprofits.com. However, if I go to my basic TOPS page hosted on toponlineprofits.com then the images show up fine.
As Tal mentioned above, it would be a good idea to eventually upload all of your images to your own web host and link to them there, and in fact I mentioned this in my P.S. above in my previous post. You need to be able to access the images first in order to do this however, and even though it is usually a bit slower to link to outside domains for your images, they should at least appear...
I'm just heading out of town now, but I have alerted Tom to this issue so that he can take another look at it, so hopefully we'll have the image display problem resolved in the next day or so.
Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 23, 2007 13:07:07 GMT -5
Troy, thank you so much for your kindness, generosity, and consideration. I am happy t report that the images are showing up. And I definitely agree with your philosophy of teaching me to fish for a lifetime I am getting on my fishing gear as I write this, so I'll let you know how it all turns out. Steve
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 23, 2007 13:08:18 GMT -5
Tal, I just saw your post as well, and will definitely load the images into I-Power. Thanks for the suggestion!
|
|
|
Post by Tom "CloudHand" on Sept 23, 2007 14:29:37 GMT -5
Hi Steve,
Just to reiterate what Tal and Troy has recommended. Not only does the images load faster if they come from your domain, but it also reduces the load on the TOPS server if the images displayed on your page are not coming from the TOPS domain.
One of the issues we had with our previous web host was that they began monitoring hits to the TOPS server and began taking us off-line whenever we went over their max hit allowed.
Hot linking is when an image displayed on your web page is linked to another web site. Every image that is displayed on another domain that is hot linked to TOPS counts as a hit on the domain and uses some resources to serve that image to that page.
We are now on a new web host which appears to be much more responsive than our old host, so we currently have no issues with hot linking. But as we continue to grow and bring in more and more new members, this could begin to cause us problems once again and we will need to address this.
We may eventually need to turn on hot link protection, which will prevent the loading of images from the TOPS server onto other domains. If we do this, any image you have linked to TOPS will no longer be displayed on your web page. It is thus better to copy all images on your page that are currently linked to TOPS and place them on your domain so you can link to them there. That way if we turn on hot link protection, your web page will not be affected.
Tom
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Sept 24, 2007 11:07:47 GMT -5
Thanks, Tom, I have loaded all my current images into my ipower account. I have a general question for anyone else from the forum. I am starting to think that what may be causing my errors on my mouseover html is the exclamation point that I put in many of the titles. Could that be the case? Also, Tom, FYI, I am also a Chicago resident, hailing from the Des Plaines burbs
|
|
|
Post by troyzone on Sept 24, 2007 15:52:36 GMT -5
Hi Steve,
I took a quick look at your page and many of your images are still being loaded from the toponlineprofits.com domain....simply uploading the images to your own web host is not enough, you then have to change the source of each image on your page to load them from your own host.
For example, if you created a directory called images and placed them in there, then you would link to the images like this in your source code: src="images/pic.jpg" That example assumes a directory name of images and a file name of pic.jpg. You can just use the part inside the quotes if you do it via the properties page in your editor rather than via the source code. See the thread I linked to a few posts above at the end of my P.S. about images for more info.
As for exclamation points in mouseover codes, I don't think this is the cause of your problem as there are many mouseover phrases in the basic TOPS site that use ! marks and they work fine. The problems are generally what I have stated above in my prior post about errors.
To that end, you now have 30 errors on your page instead of 21...I'm not sure if your editor is mangling your code or what. I gave the fix for one of your errors in my post above, but that particular mouseover is still not working as of yet, so it appears that either you have not yet implemented the suggested changes for that particular instance, or your editor reverted the code back to its previous state. Many of the other fixes would be similar to what I had given as an example above, using the sample mouseover code I gave as a reference.
Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Oct 4, 2007 21:33:34 GMT -5
Hello, all, just coming back to give an account of my isolated attempts to work on the error corrections. I have gone down to 17 errors, as far as I can tell. I have a question about Java Script errors, which I seem to have a bunch of. Someone told me that I should check to see if my browser has the script editing function, so that I can work on debugging those errors. Does anyone know what this is referring to? Thanks in advance! Steve
|
|
|
Post by troyzone on Oct 5, 2007 18:44:58 GMT -5
Hello, all, just coming back to give an account of my isolated attempts to work on the error corrections. I have gone down to 17 errors, as far as I can tell. I have a question about Java Script errors, which I seem to have a bunch of. Someone told me that I should check to see if my browser has the script editing function, so that I can work on debugging those errors. Does anyone know what this is referring to? Thanks in advance! Steve Hi Steve, As of the time I viewed your page, Internet Explorer appeared to detect 20 errors. I'm afraid that Javascript is not my strong suit and I'm not familiar with the script editing function that you are referring to, however sometimes under Internet Explorer's Tools menu, Internet Options, Advanced tab, there is an option to enable the Java console as well as other such Java-related options. You might check to see if any such options are available in your browser and if they are of any help to you. Sometimes you have to download and install a Java Virtual Machine (VM) if your browser does not have one already...you can get this from Sun Microsystems, the creators of Java, at www.sun.com. I went there to see how easy it was to find, and after following a couple of links ended up here: www.java.com/en/download/index.jspOne thing I'd like to note is I think the onmouseover code and so forth that I quoted earlier in this thread is in fact Javascript code, so the errors remaining in your page could still very well be with your mouseover code as was mentioned above. If that is the case, you should still be able to go through and compare your page's mouseover code to the sample mouseover code that I provided here in a previous post and make sure that the syntax matches up, such as single and double quotes in the appropriate sequence, etc. Of course, going through your code is rather tedious and time-consuming...if you find a quick and easy way to fix these errors other than by hand then let us know Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Oct 5, 2007 20:36:29 GMT -5
Thanks, Troy. I went to a hml validator site to get a run down of all my errors (http://validator.w3.org/), and that site states 17 errors. Why would that site have 17, while you are seeing 20? Is it possible it only picks up on certain errors, strictly html related, while Internet Explorer shows others, in addition to the 17?
|
|
|
Post by troyzone on Oct 5, 2007 23:28:49 GMT -5
Yes, that is quite possible. A HTML validator site would of course be checking the HTML code itself and may or may not be able to interpret other elements such as bits of Javascript code, depending on the validator.
All I did was load up your site in Internet Explorer 6 and double-clicked on the yellow error indicator in the lower-left corner of the browser window, and then clicked the Previous or Next buttons to cycle through all of the errors and counted them.
It is also possible that this method is picking up two different errors very close together that are counted as one erroneous section of code by the validator.
Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Oct 13, 2007 16:48:00 GMT -5
Another question: I went to the following website to get some help in checking and correcting my html: infohound.net/tidy/ However, when I saved the html tidy file and viewed in in my NVU editor, it was worse than before. Do you have any thoughts on how I may be able to utilize this site? Thanks, Steve
|
|
|
Post by troyzone on Oct 13, 2007 21:20:36 GMT -5
Steve, Thanks for that HTML Tidy Online link, I've messed a tiny bit with a downloadable version of HTML Tidy but the online version looks easier to use and has many options present in the Advanced view. I'm not sure if it is entirely free of bugs or would otherwise work for your situation though....I just quickly tried your page in it, and the "tidied up" page I ended up with appeared virtually blank in Internet Explorer, while in Firefox it had a bunch of code at the top and several font styles etc. changed. HTML Tidy may not correct Javascript or other types of code in your page, and this is where your errors tend to appear. In any case, I'm not sure why you simply couldn't follow my original suggestion made a few weeks ago and go through your page's source code, find the links containing mouseover code and compare them to the sample mouseover code I provided in a prior post as a template, and correct them accordingly. Often automated tools are not foolproof and there are no easier ways of doing things, at least not reliably. It may be tedious sometimes, but there is no substitute for tweaking your code by hand. For reference, here was the sample mouseover code I had provided previously in this thread that is formatted correctly in the proper syntax, with the double and single quotes in the right order: onmouseover="window.status='Prepare for a Strong Future!'; return true" onmouseout="window.status=''" I put it in a code box this time, as the regular forum font may make it harder to tell the difference between a double quote and two single quotes together. Notice how the last three characters of the above code are single quote, single quote, double quote. This is not easily visible in the regular forum font, where it appears like this: ''" I will fix three more of the errors present in your page as a further example of how to correct these errors. There are around 20 on your page, give or take a few. Here is the code from your first one: <a onmouseover="window.status='Welcome Home'; return true" onmouseout="window.status=" class="lb" href="index.html" title="Home Page">Home</a> The onmouseout="window.status=" part is missing two single quotes before the closing double quote. What goes between the two single quotes is the text string that you want to display in the browser's status bar when you move the mouse off the link. However, since you don't want any text displayed when the mouse is moved away from the link, the area between the two single quotes is null or empty. This is why the single quotes are right back to back just before the final closing double quote. The double quotes encompass the entire onmouseout argument consisting of window.status=''. The onmouseover section is similar, although it specifies the text that you want displayed when the mouse pointer IS moved over the link. I hope this all makes sense...if you read the above a few times slowly then it may In any case, that was the "why" for the need of the missing quotes....the important thing however is to simply follow the format outlined in the reference code above and correct your code accordingly. Here is the corrected code for this first error: <a onmouseover="window.status='Welcome Home'; return true" onmouseout="window.status=''" class="lb" href="index.html" title="Home Page">Home</a> Note that the above was given as a syntax error in line 168, at least in the error box in my Internet Explorer, and occurs for your Home link near the top of your page in your linkbar. The line number for this section of code may not be the same in your editor's Source view as what IE gives as the error location, but it may be somewhat close. In fact, it appears that all of the remaining errors are syntax errors, which means that there is a problem with the syntax or format used for the code (for example, wrong number or placement of single or double quotation marks). For my next trick (err...the next error), IE gives it as line 199, and it is in the following link code: <a onmouseover="window.status='Work From Home!'; return true" onmouseout="window.status=" target="_blank" href="http://www.quickinfo247.com/9630304/free"> <img style="border: 0px solid ; width: 120px; height: 600px;" src="http://www.financiallyfreebiz.com/img/SFI_120x600%20work%20from%20home.gif" alt="Work From home!" title="Work From Home!"></a> This code has the exact same problem...there are two missing single quotes that should appear just before the closing double quote in the onmouseout="window.status=" section. Replace the above code with the following corrected code to fix: <a onmouseover="window.status='Work From Home!'; return true" onmouseout="window.status=''" target="_blank" href="http://www.quickinfo247.com/9630304/free"> <img style="border: 0px solid ; width: 120px; height: 600px;" src="http://www.financiallyfreebiz.com/img/SFI_120x600%20work%20from%20home.gif" alt="Work From home!" title="Work From Home!"></a> The third error is on the very next line (line 200 according to IE) and this one is also the exact same problem. The link code appears as follows: <a onmouseover="window.status='Internet Marketing Center!'; return true" onmouseout="window.status=" target="_blank" href="http://www.marketingtips.com/trafficsecrets/t/916676"><img style="border: 0px solid ; width: 125px; height: 415px;" src="http://www.financiallyfreebiz.com/img/blogging_banner2traffic.gif" alt="Internet Marketing Center!" title="Internet Marketing Center!"></a> Again there are two single quotes missing in the exact same location. Replace the above with the following code to correct: <a onmouseover="window.status='Internet Marketing Center!'; return true" onmouseout="window.status=''" target="_blank" href="http://www.marketingtips.com/trafficsecrets/t/916676"><img style="border: 0px solid ; width: 125px; height: 415px;" src="http://www.financiallyfreebiz.com/img/blogging_banner2traffic.gif" alt="Internet Marketing Center!" title="Internet Marketing Center!"></a> If you keep the reference code handy and proceed one error at a time and compare the section of code in question to the reference code, you should be able to fix the majority of these errors fairly easily. After fixing three errors in a row with the exact same problem, I'm willing to bet that most of your errors are caused by missing pairs of single quotes in several other similar areas of code. However, not necessarily all of your errors may be exactly the same or require the exact same fix. This is why you have to carefully compare your code to a known working sample (such as the reference code I pulled from the basic TOPS site) and make sure that not a single character is missing or out of sequence. Hope this helps. Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Oct 14, 2007 10:18:47 GMT -5
Troy, thank you much for your infinite patience in teaching me how to fish. I did make all the corrections you recommended (two missing single quotes that should appear just before the closing double quote in the onmouseout="window.status=" section.), adding the two missing single quotes to every part of the document, using the find and replace function of my editor. Unfortunately, it appears to not have made too much of a difference, as there appear to be the same number of errors at this point. I will continue to search.
Steve
|
|
|
Post by troyzone on Oct 14, 2007 13:03:35 GMT -5
Steve, Are you sure that your changes are taking effect and that your editor is not reformatting your code without your knowledge? It may be safer to make the changes in Notepad or some other editor other than NVU in case your editor is reformatting your code on you. I should also point out that it may not be wise to rely on the Find and Replace feature to do this for you, as not every instance of your code may have been in error or be in error in the same way, and this may have introduced as many errors as it fixed. Again, automated methods don't always produce the desired results. I do use these features quite a bit, but only if I'm absolutely certain of what the outcome will be. There may be other parts of your code that match what you are searching for that should not be changed, but the Replace process is messing those up and causing additional errors...this is just an example. As I said before, it may be tedious but there is no substitute for going through each error manually as I did with the three in my prior post here and fixing them by hand. Here is something else you can try to see if your editor itself is causing some of these issues... Try editing some of your page's errors with Notepad or some other editor, save it, then try going straight to your browser and viewing your page to see how it looks and how many errors are present. Next, make a backup of your page, open it in NVU, save it, and then try viewing it again to see if there are any additional problems that appeared just since loading your page into NVU. You may have to make a change or two to your page before NVU may try to reformat your code. Another thing to look for is those strings of mouseover code being broken up over two lines...apparently Javascript doesn't like that. For example, if you have an onmouseover phrase with the opening quote and part of the phrase on one line and the rest of the phrase and the closing quote on the next line, this can cause an error as well. The entire section should all be on the same line. I'm seeing quite a few "Unterminated string constant" errors at present, which often indicate a missing end quote, at least as far as Javascript is concerned....the quote it's looking for may very well be on the next line. This often happens from an editor reformatting the code and splitting your string of characters to be displayed in your mouseover code up over two lines. A string needs to be all together on a single line however. These errors could also have been caused by using Find and Replace and that process removed needed quotes or inserted extra quotes that should not be present....either way, there is likely an incorrect number of quotes present. If you ever get fed up with fixing mouseover code errors, one thing you can do is just remove all the mouseover code and go with basic links. All the mouseover code does is display a friendly message in the status bar at the bottom of the browser window, rather than showing the destination link itself when the mouse pointer is moved over it. Mouseover code is by no means required, it is just an added feature that was included with the basic TOPS site. Sometimes it is more trouble than its worth Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Oct 14, 2007 20:26:38 GMT -5
Troy, as always, thank you for your thoughtfulness and thorough responses. I wll take this with me into the next couple of weeks and see what I come up with. Persistence is the key! Steve
|
|
|
Post by troyzone on Oct 15, 2007 10:11:51 GMT -5
You are welcome Steve. I hope that with the above information and some time spent on your page that you are soon able to correct the errors. Good luck!
Troy
|
|
sborg
Full Member
Never Give Up!
Posts: 103
|
Post by sborg on Nov 10, 2007 20:57:42 GMT -5
Troy, I'm back and asking for more help. I have reduced the number of errors to 7, I think, and the site is HTML validated, so I am seeing some light at the end of the tunnel. In terms of the onmouseover text, I did edit everything in notepad, putting everything on one line as you had previously mentioned, but it did not seem to make much of a difference. Since I have a hard time figuring out where the errors might be, I am coming back to you for help. Thanks for your longsuffering patience, and I can't wait to get to phase 2!!
|
|
|
Post by troyzone on Nov 12, 2007 1:14:23 GMT -5
Hi Steve, Putting things on one line basically just applies to when you have items inside quotes, such as inside Javascript code. I've found that if you have an opening quote on one line and the closing quote for it on a different line in Javascript code, it tends to cause errors. It doesn't really matter about the rest of your HTML however. Your remaining errors are along the same theme as was mentioned above, and in fact, my post on Sept 16 earlier in this thread gives the ad titles for three links that have mouseover code problems. The following section of code is for the latter two of those very same links, and they still contain three of the errors indicated by Internet Explorer: <td style="font-weight: bold; font-family: Verdana;" class="ad_title" align="center" valign="middle" width="34%"><small> <a onmouseover="window.status= 'Type at Home!; return true" onmouseout="window.status=''" title="Type at Home!" target="_blank" href="http://www.type-at-home.com/half-price/coupon.php?id=11016">Make Money Online</a></small></td> <td style="font-weight: bold; font-family: Verdana;" class="ad_title" align="center" valign="middle" width="33%"><small><a onmouseover='window.status="Paid Surveys!"=return true' onfocus='window.status="' title="Paid Surveys!" href="http://www.paidsurveysetc.com/coupon/11016" target="_blank">Work at Home Income</a></small></td> I have highlighted the erroneous sections in red. If you look closely, the 'Type at Home! section is missing a closing quote ' after the ! mark and should be 'Type at Home!'. Also, the following section: onmouseover='window.status="Paid Surveys!"=return true' onfocus='window.status="'should not have an = before return true, it should be a ; instead, and the onfocus='window.status="' part is not needed and is missing a quote in any case, causing another error. It should instead be replaced with onmouseout code. Also note that you can nest quotes inside each other as either " ' ' " or ' " " ' (double-single-single-double quotes or single-double-double-single quotes) but you have to be consistent throughout a given string or set of quotes. The easiest way to fix the second section highlighted in red is to replace it with the following code: onmouseover="window.status='Paid Surveys!'; return true" onmouseout="window.status=''" That takes care of three of the errors. The next three errors can be found in the following section of code: <br><br> </td><!--=== End of Row ===--></tr></tbody></table><em><!--=== End 4th Row ===--><!--=== Begin 5th Row ===--></em><table style="border-color: rgb(102, 102, 102); width: 480px; height: 268px;" border="2"><!--=== Row 5, Title Row ===--><tbody><tr><td style="font-weight: bold; font-family: Verdana;" class="ad_title" align="center" valign="middle" width="33%"><small> <a onmouseover='window.status="Join Survey Scout!"=return true' onfocus='window.status="' title="Join Survey Scout!" href="http://svborgman1.surveysc.hop.clickbank.net/" target="_blank">Survey Scout</a></small></td> <td style="font-weight: bold; font-family: Verdana;" class="ad_title" align="center" valign="middle" width="34%"><small> <a onmouseover="window.status='Women, Work from Home!'; return true" onmouseout="window.status=''" target="_blank" href="http://aftrk.com/c/c?b=24244&h=31915&sh=326412&bt=1x1" title="Women, Work from Home!">Women, Work from Home!</a></small></td><td style="font-weight: bold; font-family: Verdana;" class="ad_title" align="center" valign="middle" width="33%"><small><a onmouseover='window.satus="Join Survey Pass!"' onfocus='window.status="' title="Join Survey Pass!" href="http://svborgman1.survpass.hop.clickbank.net" target="_blank">SurveyPass</a></small></td> The problems are the same as in the first section above. The first area highlighted in red should be replaced with the following: onmouseover="window.status='Join Survey Scout!'; return true" onmouseout="window.status=''" The second red area has status misspelled as satus, is missing the ; return true, and again has onfocus where it should have onmouseout. Replace this second red section with the following: onmouseover="window.status='Join Survey Pass!'; return true" onmouseout="window.status=''" The last error appears in the following line of code: <a style="font-weight: bold;" onmouseover="window.status='Find Out From One Who's Been There';return true" onmouseout="window.status=''" title="Hear from Someone Who's Been There" target="_blank" href="http://aftrk.com/c/c?b=29596&h=31915&sh=326412&bt=1x1">Click The mouseover code here is in the right format, however the word Who's contains an apostrophe ' which the browser's script interpreter incorrectly sees as a single quote ' instead. As a result, it thinks there are an incorrect number of quotation marks present, causing an error. You should avoid using words with apostrophes in mouseover code unless you replace them with their ASCII equivalent code...it is easier however for most people to just reword their mouseover text to avoid this issue. I had mentioned the potential apostrophe issue in my posts on Sept 15 and 23 earlier in this thread. To fix this, just replace the word Who's with the words Who Has in the above mouseover code to correct this error. This takes care of the rest of the errors. A couple of other notes... I noticed that your header images are still linked to the toponlineprofits.com domain. You will need to save these images to your own web host and link to them there, just as you have done with most of your other images. Having your page linked to the images stored on someone else's domain (toponlineprofits.com in this case) is known as hot linking and is to be avoided for various reasons...see the following post for more info on this topic: erichw33.proboards53.com/index.cgi?board=website2&action=display&thread=1182568366&page=1#1184618987The toponlineprofits.com domain currently allows hot linking, however this was just done temporarily to give people time to update their sites and load the images onto their own web hosts. Hot linking will not likely be allowed indefinitely as it puts a huge drain on the toponlineprofits.com hosting account with so many people's sites linked to it, so it will probably be disabled at some point in the future. Once hot linking is disabled, your images will disappear and show those ugly little red X's for missing images until you correct the issue. Thus, it would be best to take care of this as soon as possible by saving the headers and any other images stored on other sites to your own web host and linking to them there. This also enables your page to load slightly quicker as well, as it takes time for a browser to contact outside hosts and then load images or other files from them. The other thing I wanted to mention is some of the code in the corrections above links to Type At Home. Note that this offer has been discontinued and should be replaced with either Keystrokes4Cash or Keyboarding4Cash. I recommend that you log into the Traffic Payouts site at www.trafficpayouts.com as they have made several offer changes recently and you will need to update your site accordingly. Hope this helps. Troy
|
|