81
Bassman
Re: javascript issues
  • 2006/12/18 3:28

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


try
Quote:

body {color: black; background: white; margin: 0; padding: 0; background-image:url(images/rotate.php); }



82
Bassman
Re: javascript issues
  • 2006/12/18 3:12

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


actually, the PHP script will work. I've done it before.



83
Bassman
Re: javascript issues
  • 2006/12/18 2:33

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Why not put your images into a folder in your theme and try
Quote:

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

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


Or try the random php script athttp://alistapart.com/articles/randomizer/



84
Bassman
Re: javascript issues
  • 2006/12/18 1:59

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Quote:

<img src="<{$xoops_imageurl}>/image.jpg"/>


etc



85
Bassman
Re: javascript issues
  • 2006/12/18 1:38

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Are you calling the javascript with a direct url? You need something like
Quote:

<link href="<{$xoops_url}>/myjavascript.js"/>


if in the site's root
or

Quote:

<link href="<{$xoops_imageurl}>/myjavascript.js"/>


if in the theme (you are using) folder.

Same thing applies with the images.



86
Bassman
Re: Anyone for cricket?
  • 2006/12/17 21:01

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Great to see you're a cricket fan Jen. Can you have a word to my wife? ;)

Go Aussies, 5 wickets to take today to win back the Ashes :)



87
Bassman
Re: News preview -- black text on black background, need change to white text
  • 2006/12/15 3:55

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


In your style sheet for your theme you have
Quote:

.outer {background-color: #000000; width: 100%; color: #000000;}


You need to change color:#000000 to color:#FFFFFF .



88
Bassman
Re: change to system main menu block
  • 2006/12/13 2:20

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Easy.
1) Clone default template set in your template manager
2) set cloned template set to be default
3) edit system_block_mainmenu.html (it's a System template:
add the following before the closing "</table>" tag
Quote:

<tr>
<td><{if $xoops_isuser}>Welcome, <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>!
<{else}> <a href="<{$xoops_url}>/register.php">Become a member</a> of this website.<{/if}></td></tr>


You can change the wording, of course.



89
Bassman
Admin menus gone after upgrade to IE7
  • 2006/12/12 21:38

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


It's the weirdest thing: My comp at work has been updated to IE7. Now when I try to access the Admin area, I only get the header, not the admin menu at the left. I should mention that I changed the admin area theme to one that was available here at XOOPS last year (I think)that was done by (?)Ralph?
It works fine in Mozilla, and when I check the source, the whole code is there.... just can't see the admin menus.

Any suggestions?



90
Bassman
Re: anyone interested in helping me work out how my kids can do this?
  • 2006/11/27 22:09

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


No probs Jen, let me know how it goes.




TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 108 »



Login

Who's Online

212 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 212


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