Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-10-2005, 12:57 PM   #1 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 124
metazai is on a distinguished road
Very annoying CSS problems in Firefox

Howdy . . . putting together an online portfolio, and I wrote a nifty little controllable slideshow to show off my images -- ok, it's actually ugly, but it works! In IE, that is. In Firefox, it won't show up at all, even a little bit. I've tried every flippin' permutation I can, but to no avail. The placement of the JavaScript might seem tortuous, but it's there so it can be wrapped inside a php script that's pulling the images, and it works perfectly in Internet Explorer. Here's the relevant code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="minmax.js"></script> 
<link href="port.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="graphicdesigns_wrap">
<div class="verd14" id="right_wrap">
<div id="slideshow"><img src="images/spacer.gif" width="1" height="200" align="left" /><a href="images\graphicdesigns_image_processor.php?id=1" target="_blank"><img src="images\graphicdesigns_thumbnail_processor.php?id=1" border="0" /></a><br clear="all"/><img src="images\slideshow\click_to_open.gif" border="0" width="260" height="19" /><br /><a href="#" onclick="moveslide('forward',1)"><img src="images\slideshow\next_image.jpg" border="0" width="94" height="20" /></a><br /><a href="#" onclick="moveslide('backward',1)"><img src="images\slideshow\previous_image.jpg" border="0" width="94" height="20" /></a></div>
 <script type="text/javascript">
	function moveslide (direction,runningtotal) {
	var picnumber=runningtotal;
	if (direction = "forward") {
	picnumber++; }
	else {
	picnumber--;}
	if (picnumber < 1 || picnumber >41) {
	picnumber=1;}
	document.getElementById('slideshow').innerHTML='<img src="images/spacer.gif" width="1" height="200" align="left" /><a href="images/graphicdesigns_image_processor.php?id=' + picnumber + '" target="_blank"><img src="images/graphicdesigns_thumbnail_processor.php?id=' + picnumber + '" border="0" /></a><br clear="all"/><img src="images/slideshow/click_to_open.gif" border="0" width="260" height="19" /><br /><a href="#" onclick="moveslide(\'forward\',' + picnumber + ')"><img src="images/slideshow/next_image.jpg" border="0" width="94" height="20" /></a><br /><a href="#" onclick="moveslide(\'backward\',' + picnumber + ')"><img src="images/slideshow/previous_image.jpg" border="0" width="94" height="20" /></a>';}
</script></div>
</div>
</body>
</html>
The CSS called in the script is here:

Code:
#graphicdesigns_wrap{
	position:absolute;
	top:0px;
	background:#FFFFFF;
	width:100%;
    height:100%;
	margin:0px auto;
	text-align:left;
	background-image:url(images/structure/graphicdesigns_bak.jpg);
	background-position: top right;
	background-repeat: no-repeat;
	max-width:900px;
	min-width:800px;
	z-index:auto;
} 

#right_wrap{
	position:relative;
	top:85px;
	right:260px;
	width:260px;
	height:600px; 
	margin:0px;
	padding-top:0px;
	text-align:left;
	float:right;
	background-color:transparent;
}
Any ideas?
metazai is offline   Reply With Quote
Old 08-10-2005, 02:17 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
redhead is on a distinguished road
Here is your error:
Code:
.innerHTML=
It is not supported in firefox, but innerHTML isn't even W3C supported theres a description which might make it work..
Else look at these two pages (1; 2) and verify the error which appears in your javascriptConsol.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 08-10-2005, 03:18 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
i've successfully used innerHTML with FF just last weekend when i programmed this. .. a counter-strike server status that refreshes with ajax.

maybe it is something in minmax.js?
__________________
Mike
sde is offline   Reply With Quote
Old 08-10-2005, 03:18 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Nope firefox does support .innerHTML, I have a few pages that rely on it. http://www.mtkolvir.net/psychosis.html for example.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic CSS files with PHP metazai PHP 28 06-28-2005 10:30 AM
CSS help please sarah31 HTML, XML, Javascript, AJAX 8 03-03-2005 06:31 PM
CSS Explorer trouble (of course) easilyi HTML, XML, Javascript, AJAX 6 11-11-2004 03:59 PM
Firefox smashes funding target sde Code Newbie News 0 10-22-2004 05:45 PM


All times are GMT -8. The time now is 12:23 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting