Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php possibly creating a conflict with my Flash gallery??
Old 07-27-2006, 03:24 AM php possibly creating a conflict with my Flash gallery??
Average Talker

Posts: 22
Trades: 0
Before I submit my site for review and tweak a few things, I wondered if anyone has a suggestion for how to fix one problem... I have a design that uses CSS and a php-based stylesheet switcher, so that visitors can select which "theme" they want. It works great on all the pages except for the gallery, because when I try to add it to the file that contains my Simpleviewer (a nifty free flash script) gallery, the Flash won't load.

Here's an example of the gallery that works: (no style-switching)
http://www.harpjas.com/simpleviewer/jas_gallery.php

And here's the one that doesn't:
http://www.harpjas.com/simpleviewer/jas_gallery2.php

Am I trying to do too much by having two javascripts on one page? Forgive me if this is the incorrect thread, I realize this question deals with like three different technologies, so please just help me out here... if I could get this to work, that would be fantastic.

any advice is greatly appreciated! thanks
randomharp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-27-2006, 04:24 AM Re: php possibly creating a conflict with my Flash gallery??
Mad182's Avatar
Skilled Talker

Posts: 54
Name: Madars
Location: Latvia
Trades: 0
PHP Code:
<php
if(isset($_COOKIE['default'])){
$style=$_COOKIE['alternate'];
} else {
$style='default'//the name of default style file
}
?> 
Just add "?" to <php. Now there is no stylesheet.
__________________
There's no place like 127.0.0.1

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Mad182 is offline
Reply With Quote
View Public Profile Visit Mad182's homepage!
 
Old 07-27-2006, 02:34 PM Re: php possibly creating a conflict with my Flash gallery??
Average Talker

Posts: 22
Trades: 0
Hi, thanks Mad182 - I did that... some people on another forum noticed that error, as well. Problem is, now the code is good, but the styleswitching effect doesn't work.. check http://www.harpjas.com/main.php. At least the theme-switcher doesn't work for me, and I'm using IE on a PC.

should I just change to a completely different switch script??
randomharp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php possibly creating a conflict with my Flash gallery??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11798 seconds with 12 queries