codetoad.com
��ASP Shopping Cart,�Forum�&�BBS
��- all for $20 from CodeToad Plus!
��Home�||�ASP�|�ASP.Net�|�C++/C#�|�DHTML�|�HTML�|�Java�|�Javascript�|�Perl�|�VB�|�XML�||�CodeToad�Plus!�||�Forums�||�RAM
Search Site:
Search Forums:
Issue with Javascript between web servers �kathym at 21:31 on Saturday, September 20, 2008

Hello,

I created a website with the ability to increase or decrease
the font size.

When I had this website with 1 ISP provider, it worked.

When I moved the website over to a different provider, my
code will only allow the user to increase or decrease by 1 size.

Why would this happen? Below is my code.



function resizeText(multiplier)
{
var ifontsize = 0;

var sTemp1 = readCookie("PageHeading");
var sTemp2 = readCookie("MainBody1");

if ((! sTemp1) || (! sTemp2) || (document.body.style.fontSize == ""))
{
document.body.style.fontSize = "1.0em";

document.getElementById('PageHeading').style.fontSize = "1.0em";
createCookie("PageHeading", "1.0em", 7);

document.getElementById('MainBody1').style.fontSize = "0.8em";
createCookie("MainBody1", "0.8em", 7);
}

/* PAGE HEADING */
ifontsize = document.getElementById('PageHeading').style.fontSize;
document.getElementById('PageHeading').style.fontSize = parseFloat(ifontsize) + (multiplier * 0.1) + "em";
ifontsize = document.getElementById('PageHeading').style.fontSize;
eraseCookie("PageHeading");
createCookie("PageHeading", ifontsize, 7);

/* MAINBODY 1 */
ifontsize = document.getElementById('MainBody1').style.fontSize;
document.getElementById('MainBody1').style.fontSize = parseFloat(ifontsize) + (multiplier * 0.1) + "em";
ifontsize = document.getElementById('MainBody1').style.fontSize;
eraseCookie("MainBody1");
createCookie("MainBody1", ifontsize, 7);
}










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
�� Problem to declare global variable in Object oriented perl
�� Issue with Javascript between web servers
�� Not Allowing Copying from Site
�� Re: dereferenceing a string to a constant name
�� Scrolling Javascript Product Slider
�� Re: TO SEND Text message or URL through Clickatell
�� A little help
�� Re: Storing data from HTML to Excel or TXT
�� Re: Parsing, fish up all between <td> and </td> ... without possibility of confusion.


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


� Copyright codetoad.com 2001-2008