11
fiammy
Are there special things to consider when adding Javascript to a theme?
  • 2004/7/22 8:56

  • fiammy

  • Just popping in

  • Posts: 19

  • Since: 2003/1/14


Hello,
I am trying to add some Javascript to a theme.html file, such as stuff to make my drop-down work, but also a clock a friend of mine specifically asked to be added to his theme.
When I simply include the javascript, it doesn't get executed as far as I can see. Are there specific procedures or checks to do before adding javascript?

A simple example : I need Javascript to get my CSS drop-down menu working in Internet Explorer. The menu works in Opera and Mozilla as it is supposed to, so there isn't an error there. However, in IE it doesn't work at all. No drop-down of any kind .

The text I included is this one :

startList = function() {
if (
document.all&&document.getElementById) {
navRoot document.getElementById("nav");
for (
i=0i<navRoot.childNodes.lengthi++) {
node navRoot.childNodes[i];
if (
node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  
node.onmouseout=function() {
  
this.className=this.className.replace(" over""");
   }
   }
  }
 }
}
window.onload=startList;


Any idea why this doesn't work? I included it in the HEAD part of the HTML file, and tried including it before and after the XOOPS javascript, to no avail.

Thank you very much,

fiammy



12
fiammy
Re: wysiwyg editor
  • 2004/5/27 7:39

  • fiammy

  • Just popping in

  • Posts: 19

  • Since: 2003/1/14


You might have a look at tinyMCE, a LGPL'ed WYSIWYG HTML editor, which happens to work with Mozilla, Opera and IE.

Don't know about the license compatibility between it and XOOPS I must admit.



13
fiammy
Re: XcGallery - it is possible to load so many images?
  • 2004/4/12 18:41

  • fiammy

  • Just popping in

  • Posts: 19

  • Since: 2003/1/14


I think the solution exists, in a certain way. xcGallery lets you import an entire directory of images in one time. you could add a directory per artist, and add all the images by the same artist in the same album, while that way saving precious time...

I think this isn't a perfect solution, but it's a start (divides the work almost by 14 )




14
fiammy
Showing a poll based on whether user has already voted
  • 2004/2/16 14:13

  • fiammy

  • Just popping in

  • Posts: 19

  • Since: 2003/1/14


Hello,
is it possible to check whether a user has allready answered a poll? I would like to show the poll block only when a user hasn't responded yet, or show the results directly...

I think this hasn't been answered in the forums yet, I did some searches but came up with nothing.

Thanks,



15
fiammy
Re: Is it possible to import PHPBB2 database?
  • 2004/2/16 11:04

  • fiammy

  • Just popping in

  • Posts: 19

  • Since: 2003/1/14


Hey,
I was looking around, and all I found was this thread :

https://xoops.org/modules/news/article.php?storyid=390

Hope this is of some help to you.




TopTop
« 1 (2)



Login

Who's Online

203 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits