Forums » Support
Javascript targeting index only
thisisdaniel
NORWAY
2008-04-30 20:59:19
 

Could anyone please help me with this little problem.

I would like to have a javascript generate a random quote on my site, but only on the welcome/home page. I´ve currently implemented the script in my index.php causing it to show quotes on every page generated by indexhibit. I´ve also tried to load it through the wysiwyg editor a couple of ways, but with no luck. Im not that familiar with javascript, so I might be doing something wrong, or it has to be done totally different? :)

hope somebody want to help ü

the site!
Its currently in the making so not much stuff going on there yet.

Thanks, Daniel.

Vaska
I WROTE THIS
2008-05-01 02:03:33
 

Make a plugin out of that and use something like...

if ($rs['url'] == '/') return random_text_function();

thisisdaniel
NORWAY
2008-05-01 18:02:58
 

Tried reading through this thread among a couple of other threads to get at grip on how to make a plugin, gave it a shot, but didnt work too god. Got a bit confused on the way.

Also had a look at the random background-image plugin to see if i could get my head around it by reading one that works, but no. :-)

Would you care to elaborate on the subject matter?
Would be greatly appreciated.

Anyways, thanks, you guys are doing an amazing job! ü
D.

Vaska
I WROTE THIS
2008-05-01 18:50:16
 

Sorry, that's it. You need to try...I'll try to help if you let us know where you have problems...but my main responsibility, aside from putting Indexhibit out there, is to help people with installation...not customization.

If other folks come along who can help that's great...better for me as well.

Showing 1 - 4 of 4 posts in Forum > Support > Javascript targeting index only
 

You need to be logged in to post.