1
Paxination
changing the site url...
  • 2006/12/23 1:28

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I fount the faq about changing the site url and tried it. But all the graphics disappeared and most of the formatting for the site wasnt working either. I was changing it because the setup detected it on a subdomain during installation and I didnt think anything about it then. But now I want to change it now so it only shows the actual URL that I have for it.



2
Paxination
Re: javascript issues
  • 2006/12/18 3:47

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


finally... thanks. I set the folder variable just like it asked. Maybe it was absolute path. That would have been a doozy to type out. Thanks for helping me out there!



3
Paxination
Re: javascript issues
  • 2006/12/18 3:23

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


Nope that didnt work either. I have the script in my theme folder. And the folder variable in it set to /images/ I have the images folder in the theme folder.



4
Paxination
Re: javascript issues
  • 2006/12/18 3:17

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I tried it. It dont for me. You got it to work from a css file? like this....

body {colorblackbackgroundwhitemargin0padding0background-image:url(rotate.php);}


now this is the css file that is in the theme...I tried it and no go. Blank background, which shows its not working or else it would show my images or a an error image. And its not difficult to setup.

Maybe I need to try a direct URL to the script in the css file.



5
Paxination
Re: javascript issues
  • 2006/12/18 2:59

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I tried that method and it didnt work. And that php script aint going to work since the background img is called from the css file (trying to keep at html standard).



6
Paxination
Re: javascript issues
  • 2006/12/18 2:22

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I cant use html tags in the javascript. Or can I? And I dont think XOOPS variables will work in the javascript either will it? Since javascript is browser side so I dont think the php parser would see it am I right?



7
Paxination
Re: javascript issues
  • 2006/12/18 1:44

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I didnt use the LINK tag...i used the script tag. I know the javascript is loading because I dont see the changebackground() not defined in error anymore. I tried a direct url and a fold path with the images. The javascript and images folder are in the include folder. So how should the path to the images be in the javascript? url or fold path?



8
Paxination
Re: javascript issues
  • 2006/12/18 1:32

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


Ok maybe if I rephrase my question I might get some help. Will there be any issues using javascript to access certain html objects and modify them? Like with my background there. All I am doing is changing the background img in the body tag. Just not sure it will work since its php generated html.



9
Paxination
javascript issues
  • 2006/12/17 23:55

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I am trying to get the background to change on every click of a link. It works fine on a normal html website. But it wont work in xoops. I have the javascript file in the include folder with the images directory in it. And I have the file linked to in the theme.html file. I check the error console in firefox and there are no errors. Just no change. Here is my javascript code.

var backgroundpics = new Array();
backgroundpics[0] = "images/background1.jpg";
backgroundpics[1] = "images/background2.jpg";
backgroundpics[2] = "images/background3.jpg";
backgroundpics[3] = "images/background4.jpg";
backgroundpics[4] = "images/background5.jpg";

function 
changebackground()
{
var 
number = (Math.floor(Math.random()*5))
document.body.background=backgroundpics[number]
}


the function is access as an onclick event in the usermenu and mainmenu templates which i have edited.



10
Paxination
Re: Different positioning of blocks between groups
  • 2006/12/16 2:27

  • Paxination

  • Just popping in

  • Posts: 24

  • Since: 2006/12/7


I dont want the blocks to disappear unfortunately.




TopTop
(1) 2 3 »



Login

Who's Online

202 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits