Please don't click on these links yet.

Under construction: ? * # 0-9 |A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

Your opinion is needed with a new "FAQ" I'm thinking of writing up. Click on this "FAQ link" now and leave a comment if you can spare the time.
Tutorials : How I made it toolbars paginations buttons widgets tweeks mega tweeks everything else inspiration ideas FAQ problems Fixing problems

The perfect cross browser marquee that doesn't cut the contents off in Internet Explorer.

Tuesday, August 28, 2012  at 2:42 PM 0 comments
LIVE-DEMO (Mine), and live-demo HERE ON MY FRIEND'S BLOG .

If you do not use Internet Explorer as a web browser you may not know that these general marquee codes <marquee>TEXT GOES HERE</marquee> have the habit of cutting off the content of marquees once the width of the marquee has been exceeded. So, visitors who use Internet Explorer only see some of your scrolling text NOT ALL OF IT, if you have a lot of text and links added to a marquee.

In trying to solve the problem of marquee content being cut off in Internet Explorer but not in other browsers for my friend Taylor, I stumbled across THIS WEBSITE. I added the marquee code but found I couldn't customise the link colours. I seriously needed to customise the link colours!!! In the end I had to create my own css code for the marquee. It was complicated but this tutorial is the final result of all my hard work. NOW NO MORE TEXT BEING CUT OFF IN MARQUEES NO MATTER HOW LONG THE CONTENT IS!

Okay, if you want to add this marquee to your blog, then you need to follow my instructions below. The instructions is for creating a div area for the marquee and adding css code so you can customise the text and link colours within the marquee itself, and then adding the marquee code to a HTML / Javascript widget.

INSTRUCTIONS:

Copy and paste the code below this text directly above ]]></b:skin>

/* Scrolling Text
----------------------------------------------- */
#scroller-wrapper {
width: 1100px;
height: 20px;
background:#000 url(https://lh5.googleusercontent.com/-KsndJxKQ7fo/T9mfI9eQZ2I/AAAAAAAAHjw/LTODCYBsMio/s136/youarehere.png);
background-position:left;
background-repeat:no-repeat;
margin:-10px 0 0px 0;
padding:0 0 3px 0;
}
#scroller {
float:right;
width:993px;
color:#fff;
}
#scroller a {
color:#fff;
margin-left:0;
margin-right:10px;
}
#scroller a:hover {
color: #66cd00;
}


Then, wherever you want the scrolling text to display on your blog, after the <body> tag and before the </body> tag paste in the following code:

<div id='scroller-wrapper'>
<b:section class='scroller' id='scroller' maxwidgets='1' showaddelement='yes'/>
</div>

Then click on "Save Template". Now go to your "Design" tab and you will see an "Add a Gadget" widget where you want the marquee to be displayed. Click on the "Add a Gadget" link and select a "HTML/Javascript" widget to put there.

Now, I've had some problems with the next lot of code being added to this post, so I will have to give you the link for the original place where I found this cross-browser marquee code that goes into a widget. Click on the link HERE and copy THE CODE THAT IS IN THE SCROLLING TEXT BOX FROM THAT SITE.

Then paste that code into the HTML/Javascript widget and then click on "Save" to save the widget.

Click on the "Save" button on your "Design" page. You're almost done!

HOW TO EDIT THE LOOK OF THE MARQUEE AND SCROLLING LINKS/TEXT:

STEP 1: Firstly, go to your "Edit Template" page and then you will need to find the width of the area where you placed the marquee widget. For example, if you placed the marquee widget directly below your header, then find the width of the #header-wrapper (or header-outer) or if you don't have a width for that widget then the #content width will suffice. If you placed the marquee widget directly above your blog posts within the main-wrapper (or main) area then find the width of the #main or your #post width, if there is one. Once you find the corresponding width highlight and copy it.

STEP 2: Scroll up and locate the css code for the #scroller-wrapper (See first lot of code I added to this tutorial), delete 1100px and paste in the new width.

STEP 3: Change the #scroller colour from #fff (white) to the colour of your choice. Note that this is just for text only that will be added to your marquee and not any link colours.

STEP 4: Change the #scroller a colour from #fff (white) to the colour of your choice. This is for what colour you want your links to be displayed as.

STEP 5: Change the #scroller a:hover colour from #66cd00 (green) to a colour of your choice. This is only for the link hover colour.

STEP 6: If you want to add a visited colour as well, then add this code to the css code as well:

#scroller a:visited {
color: #66cd00;
}

and change the #66cd00 (green) to the colour of your choice.

Once you've made these changes click on "Save Template.

EDITING THE URLS IN THE MARQUEE WIDGET:
Simply replace the existing urls with your own urls, and replace the existing text with your own text that is between the <font face="Arial"></font> tags. BE CAREFUL OF WHAT YOU ARE DOING!!!

IMPORTANT AND REMEMBER THIS: When adding a link url to your scrolling text - which is now a widget - you must add the double " either side of the url. The code won't accept a single ' surrounding urls. If you make just one mistake with the urls the whole thing will not display the scrolling text. It is a very delicate, and tempermental, code.

Every bit of text you add to the marquee must be added within the <font face="Arial"></font> tags. If you alter the font code by adding more code to it, it will most likely not display your scrolling text.

Also: The scrolling text will not display anything if you add <span></span> code to it when adding links or text.

The scrolling text also will not display the content if you add hex codes for spaces between each link.

The scrolling text does not display anything if you separate links and text with line break codes <br /> nor if you add each link on a new line. However, it does not mind it if you press the space bar once or twice between each link code.

After all the changes are made to your scrolling text/marquee, you will now have scrolling text that will now be visible in many web browsers. It displays ALL THE CONTENT in Internet Explorer 7, Firefox, and Google Chrome. If you use another web browser and this works in that web browser please leave a comment below.

The best cross browser numbered page navigation menu around.

Wednesday, August 1, 2012  at 2:29 PM 0 comments
The live-demo is on this blog below all the posts!

Do you find it annoying when you add a numbered page navigation menu to your blog only for it to display posts from previous pages you clicked on? I don't remember the exact number of widgets I've come across in my time on the internet that has disappointed me by doing this but its a lot. Personally, I don't like seeing the same post I just saw on a previous page that I just came from, by clicking on the page navigation menu. I'm sure it irritates everyone else too. But what's worse than that is often what displays on Internet Explorer and Google Chrome may not display on Firefox. This can be a huge problem, as visitors become stuck trying to browse your blog with no means of accessing your older posts if the blog archive widget hasn't been added to your blog.

Well, whilst helping a friend to find a solution to this problem on a template I made for him, I found code for a cross browser numbered page navigation menu. It's so awesome I added the code to this template, and it does not disappoint. It works perfectly on Internet Explorer, Google Chrome and Firefox. I haven't tested all the browsers though but it does work on a few others too.
But before I give you the code, there is another live-demo HERE that has 213 pages to search through with this exact same numbered page navigation menu as this one. Check it out if you want to because eventually, if you add enough posts to your blog, it will display "..." as a break between the numbers of pages.

This is very simple to add to your blog. If you already have a page navigation menu (numbered or otherwise) on your blog delete all the code for it, then save your template. This also includes any code that may be in a "HTML/Javascript" widget so you need to delete that widget to, if it applies to you in this instance. Please delete your old or existing numbered page navigation menu before following the instructions below.

THE INSTRUCTIONS FOR ADDING THIS TO YOUR BLOG:

Click on your "Design" tab then your "Edit HTML" tab. You do not need to click on the "Expand Template" option for any of these instructions.

There are 3 lots of code to add to your template - 1 to alter and 2 to actually add. Firstly, find the css code for your blog-pager. Make sure all 3 bits of code (for the newer link, older link, and blog pager) do not have display:none; in it. Your pager codes should finally look something like this code below:

#blog-pager-newer-link {
float: left;
}
#blog-pager-older-link {
float: right;
}
#blog-pager {
height:21px;
background:#999;
border-top:2px solid #fff;
border-left:2px solid #777;
border-bottom:2px solid #666;
border-right:2px solid #555;
text-align: center;
margin: auto;
padding: 2px 0 1px 0;
}

N.B. The reason why my blog-pager has a height of 21px is because if I did not set a height to it, in Firefox there would be a bit space below the actual page navigation menu. Adding a height to the code deletes the space below the page navigation menu in Firefox.

Now find the line of code that says ]]></b:skin> and directly above it paste in the code below this text.


/* ----- Page Navigation ----- */
.showpageArea {
color: #666666;
margin: 10px 5px 3px 5px;
padding: 0px;
float: left;
display: inline;
font-size:12px;
}
.showpageArea a {
background: #ffffff;
padding: 1px 6px;
margin: 0px 5px 0px 0px;
text-decoration: none;
border: 1px solid #000000;
color: #000000;
-webkit-border-radius: 1px;
display: inline;
}
.showpageNum a {
background: #ffffff;
padding: 1px 6px;
margin: 0px 5px 0px 0px;
text-decoration: none;
border: 1px solid #000000;
color: #000000;
-webkit-border-radius: 1px;
display: inline;
}
.showpageNum a:hover {
background: #CCC !important;
text-decoration: none;
border: 1px solid #000000 !important;
}
.showpagePoint {
font-weight: bold;
background: #CCC;
padding: 1px 6px;
margin: 0px 5px 0px 0px;
text-decoration: none;
border: 1px solid #000000;
color: #000000;
-webkit-border-radius: 1px;
display: inline;
}
.showpageOf {
background: #ffffff;
padding: 1px 5px;
margin: 0px 5px 0px 0px;
text-decoration: none;
border: 1px solid #000000;
color: #000000;
-webkit-border-radius: 1px;
display: inline;
line-height: 21px;
}
.showpage a {
background: #ffffff;
padding: 1px 6px;
margin: 0px 5px 0px 0px;
text-decoration: none;
border: 1px solid #000000;
color: #000000;
-webkit-border-radius: 1px;
display: inline;
}
.showpage a:hover {
background: #CCC !important;
text-decoration: none;
border: 1px solid #000000 !important;
}
.showpageNum a:link,.showpage a:link {
background: #ffffff;
padding: 1px 6px;
margin: 0px 5px 0px 0px;
text-decoration: none;
border: 1px solid #000000;
color: #000000;
-webkit-border-radius: 1px;
display: inline;
}

Finally, find your template's </body> code. Just above that line of code paste in the code below this text.

<!--Page Navigation Starts-->
<script type='text/javascript'>;
var home_page=&#39;/&#39;;
var urlactivepage=location.href;
var postperpage=4;
var numshowpage=4;
var upPageWord =&#39;&#171; Previous&#39;;
var downPageWord =&#39;Next &#187;&#39;;
</script>
<script src='http://stylifyyourblog1.googlecode.com/svn/trunk/pagination.js' type='text/javascript'/>
<!--Page Navigation Ends -->


Then click on "Save Template".

If you want to change the amount of posts to be displayed from 4, to say 6, you need to change these two numbers which I've changed to a blue colour in the code that goes directly above the </body> tag. (See the last lot of code I added above.) Once you've made the changes, click on "Save Template" again. Then you need to go to your "Design" tab and click on the "Edit" link that is attached to your "Blog Posts" widget, and change the very top number to the new number of posts you want to display for each page. Once you have done that click on "Save" to save the changes to that widget.

That is it. You will now have a numbered page navigation menu that will display all your posts and none of the posts will be repeated on any of the page numbers you click on, and can be seen on many different web browsers. Feel free to change the colours of this numbered page navigation menu to suit your own taste and your blog's colour scheme.

FIX FOR THIS CODE - 20 November 2012:
In the last few days this pagination code malfunctioned and refused to work. On top of that a popup box has been displaying which prevents any page on this site from fully loading. The popup prevents you from minimizing the browser window tab as well. So, here is what I done to fix the problem. Below is the instructions and code to fix this problem, which I'll be applying to this blog as soon as I've published this post.

Go to your "Edit template" page. Do not click on the "Expand template" box. In the original tutorial above find this code:

<script src='http://stylifyyourblog1.googlecode.com/svn/trunk/pagination.js' type='text/javascript'/>

Click on the link below to get the code needed. My blog is playing up so it won't display the code properly, hence this link below. At the top of the post on this stylifyyourblog website is the code for replacing the script code. Ignore the bottom half of that post. You just want the code from the top part of the post. When copying the code into your template don't foget to remove the numbers "1, 2, 3, 4, 5" to the left of all the code. Those numbers are just numbers for the lines of code and are not needed in the replacement code at all.

The website: http://www.stylifyyourblog.com/2011/10/pagination-in-blogger.html

Save your template. The pagination widget restores itself and the popup disappears and it does not return. Problem fixed!

Scrollbox codes

<a target='_blank' title='DON'T TOUCH MY PHONE' href='ADDYOURURLHERE'><img src='https://lh4.googleusercontent.com/-qSyLJ0X94nk/T-_ekHbo_mI/AAAAAAAAHmY/qk0v-X5s32s/s320/58298-dont-touch-my-phone.png' border='0'/></a>

This free script provided by
JavaScript Kit

FAQ

YOUR OPINION COUNTS! A list of topics that I am thinking of writing about but need feedback from visitors before I go ahead with it.

Click to view more Pages
 

This site consists of tutorials that you would not normally see elsewhere. I am adding tutorials that I have either tweeked or created myself, using existing code already found on the Internet.

Back To Top Image by Cool Text: Logo and Button Generator - Create Your Own Logo

Scroll to Bottom Back to Top