SitePoint Sponsor |
|
User Tag List
Results 1 to 15 of 15
-
Apr 22, 2001, 20:43 #1
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
First off, the URL:
www.bythetree.com/dev (select "high")
and an alternate page just for reference.:
www.bythetree.com/dev/welcomeREF.php3
Second, the problem.
Some of the CSS I am doing seems to be IE only. Specifically, the background-image and aligning the image to negative alignment. So, I am using two stylesheets, oen for Netscape and one for IE.
That itself would be no problem, but I am having some extremely unforeseen problems. The IE stylesheet works when I have the stylesheet on the page itself. It does not however, work when I use the document.write method to choose the stylesheet, nor does it work when I use the <link rel""...> method.
Now, every site that I have checked out says that IE supports the background-image method, but it appears that I have found a bug.
I have tried 5 different browser detection scripts hoping that one of them would work and I get nothing.
Just ahead of time, I have replaced the document.write with an alert to make sure that the script was detecting the browser properly and it does indeed choose the corect browser, I just don't get the background image like I should.
Just as an FYI, the stylesheet in the reference page is the EXACT same one that is being called by the javascript.
PLEASE PLEASE PLEASE help me out.
I need to finish this project ugently.Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 22, 2001, 22:42 #2
- Join Date
- May 2000
- Location
- Helsinki, Finland
- Posts
- 229
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If you can't get it working, you could consider reading following small article about CSS @import -tag (which isn't supported by Netscape): http://mar.anomy.net/entry/20010222200000/
Perhaps it could do the same thing you are trying to accomplish with Javascript?HighCheats - game cheats, codes, tips and tricks for PC and various console platforms
-
Apr 23, 2001, 00:21 #3
- Join Date
- Jul 2000
- Location
- 80,000 feet below the surface
- Posts
- 1,442
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Creole,
Instead of using document.write try using document.writeln and see if it works - it's an acceptable substitute.
It may also be that the JScript || parameters may not be working, in which case have a look at http://www.webreference.com/dhtml/column51/5.html and see how they do the browser detection.
Otherwise I can't see anything wrong...Good luck.
-
Apr 23, 2001, 00:22 #4
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
possibly...I will look at it tomorrow. The wierd thing is that my site works in Netscape...not in IE. Can you believe it?
Please someone take a look at it and give me some ideas.
Thanks for the suggestions by the way hmahonen.Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2001, 05:18 #5
- Join Date
- Feb 2001
- Location
- Dùn Éideann, Alba
- Posts
- 72
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
BC ...
The only difference between "document.write" and "document.writeln", is that the latter adds a carriage return to the end of the written line. There's no conceivable reason why it should act differently.
-
Apr 23, 2001, 07:29 #6
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
so does anyone have a auggestion? If I can't solve this problem with Javascript then I will be forced to have two completely seperate versions of my site.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2001, 13:38 #7
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HEEEELP
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2001, 13:49 #8
- Join Date
- Aug 2000
- Location
- San Diego, CA
- Posts
- 5,460
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
So what seems to be the problem exactly? I checked the links in IE 5 and it appears that your styles are working. I remember having a conversation with you a while back on this topic, and I though we had solved the problem, maybe I am missing something here. But what is the desired outcome supposed to be?
Please don't PM me with questions.
Use the forums, that is what they are here for.
-
Apr 23, 2001, 14:11 #9
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yup...I thought we had it solved too.
alrighty...
In IE, the page should be loading a background image set to
-60 offset . In IE (my version at least) it is not loading the image at all.
If you take a look at the styles setup, everything seems set up right. It just looks like either the script is not functioning properly or there is some sort of bug that is preventing IE from utilizing the <link rel> method. The reason I make that last statement is that when I paste the stylesheet in on the page itself, it works just fine.
please please please help me Louie. I am going insane with this!Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2001, 14:25 #10
- Join Date
- Aug 2000
- Location
- San Diego, CA
- Posts
- 5,460
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Andy, the problem is in the Chromeless window, correct? So the bottom frame should have a background image in it?
Please don't PM me with questions.
Use the forums, that is what they are here for.
-
Apr 23, 2001, 14:29 #11
- Join Date
- Apr 2001
- Location
- Seattle
- Posts
- 281
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
In your stylesheet, specify ../images/ie_bg.jpg or put the full path to the image.
-
Apr 23, 2001, 18:21 #12
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
onechance...
Thanks for the suggestion. I don't think that's it as the stylesheet works when I paste it direcly onto the page.
Louie...
No image on the bottom frame. I wanted the text down there to stand out.Last edited by creole; Apr 23, 2001 at 18:24.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2001, 18:41 #13
- Join Date
- Apr 2001
- Location
- Seattle
- Posts
- 281
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Did you even try it? You need to specify the image in relation to the external stylesheet. A full path to the image might be even better.
-
Apr 23, 2001, 19:16 #14
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hmmm...
That might be it...I didn't think about that as I almost always include the CSS as part of my PHP include.
brbAdobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2001, 19:18 #15
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
well damn...that did it...
FANTASTIC post OneChance...
I guess that's what I get for nto ever working with external stylsheets. Like I said before, I just never use themAdobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
Bookmarks