Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Roll over images
Roll over images

10 Replies / 2404 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:12 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Roll over images Posted: Sun May 11, 2008 8:25 pm

Hi,

I'm working on a theme, but I cant get the rolloverimages to work.
Never had problems with them untill now.
This is what I have.
Code:
<a href="index.php" onMouseOver="image1.src='Menu/Over/Home.gif';" onMouseOut="image1.src='Menu/Home.gif';"><img src="Menu/Home.gif" border="0" name="image1"></a>

But it gives me an error: invalid character
and the rollover doesn't work.
Does anyone have an idea what might cause this problem?

Greets
 

UDesigns.be  
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Bayler
Reputation: 856.9 Add RepSubtract Rep
votes: 10
Local time: 3:12 AM

usa.gif

Fire In The Hole
Fire In The Hole

0.16 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 08 May 2009
Posts: 275
Points: 2038 

Post Roll over images Posted: Sun May 11, 2008 11:57 pm

im not 100% sure...but it appears the ending quotes are incorrect
 

You will not recieve help from me if i have to go digging for your CMS information and version, If i have to take the time to play 21 questions, then you can take the time to google! No Copyright, no support either!  
View user's profileSend private messageMSN Messenger Reply with quote

HydenCL
Reputation: 5.2 Add RepSubtract Rep
Local time: 9:12 AM

malta.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 29, 2008
Last Visit: 24 Jun 2009
Posts: 12
Points: 7857 

Post Roll over images Posted: Mon May 12, 2008 1:25 am

Well i dont see the "/img" code could it be it??
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Bayler
Reputation: 856.9 Add RepSubtract Rep
votes: 10
Local time: 3:12 AM

usa.gif

Fire In The Hole
Fire In The Hole

0.16 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 08 May 2009
Posts: 275
Points: 2038 

Post Roll over images Posted: Mon May 12, 2008 1:59 am

i guess what im trying to say is:

everything in between your "" tags looks wrong...

im assuming your working on the theme.php file or the themeinfo.php file...

building to a php file and in php format...those tags wont work and im surprised your not receiving errors when the page loads...

without looking at your code..i couldnt tell you what direction to look in....
if you PM me the file..ill have a look
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Duck
Reputation: 484.9 Add RepSubtract Rep
Local time: 6:12 PM

blank.gif

Tree Hugger
Tree Hugger

0.03 posts per day
Medals: 0

Joined: Jan 07, 2007
Last Visit: 16 Aug 2010
Posts: 51
Points: 7407 

Post Roll over images Posted: Mon May 12, 2008 9:06 am

try document.image1.src=
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:12 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Roll over images Posted: Mon May 12, 2008 3:10 pm

Im working in the header.html.
But the weird thing is, it works offline.
And when I open header.html in IE it works aswell.
but it doesn't work as a theme in phpnuke.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


Ped
Reputation: 93.7 Add RepSubtract Rep
votes: 37
Local time: 9:12 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3672
Points: 191886 

Post Re: Roll over images Posted: Mon May 12, 2008 3:27 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Ive had this problem before

its some code inside the theme.php i cant tell you what it is as i couldn't find it, i just replaced it with an older theme.php that i knew worked and it was there..

I suppose i could send you over one of my theme.php's and you could compare them to see whats different
 

 
View user's profileSend private messageSend e-mail Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:12 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Roll over images Posted: Mon May 12, 2008 4:27 pm

That would be great :D
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:12 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Roll over images Posted: Mon May 12, 2008 5:59 pm

I found the problem.
It's the function addslashes
It replaces the ' by \'
and then it doesn't work anymore
So now I replaced
Code:
    $tmpl_file = "themes/MD_Multi/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;

By
Code:
include("themes/MD_Multi/header.html");
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


Bayler
Reputation: 856.9 Add RepSubtract Rep
votes: 10
Local time: 3:12 AM

usa.gif

Fire In The Hole
Fire In The Hole

0.16 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 08 May 2009
Posts: 275
Points: 2038 

Post Roll over images Posted: Mon May 12, 2008 8:46 pm

your going to have problems later on down the road if you do it that way.
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:12 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Roll over images Posted: Tue May 13, 2008 6:17 pm

You mean if I use like $ads or something in the header?
Well then I'm just going to include the menu seperately.
And the rest of the header the was it was before.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » PhpNuke Theme Questions


 
10 Replies / 2404 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum