Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Wierd symbals appeared
Old 12-06-2007, 10:03 AM Wierd symbals appeared SOLVED
Registered User

Posts: 255
Trades: 4
THANKS TRIPY

you sent me in the right direction,it was as you suggested saved in the wrong format

THANKS


Hi all
Im playing around in the php source of a phpnuke block and all was fine untill these things arrived:



Ive tryed back tracking but to no avail so just wondered if anyone knows
a/ what they mean
b/ how the hell they got there

Site url is www.cobragaming.biz and the symbals are in between blocks on right hand side, the block im playing with is the picture scroller

FULL BLOCK CODE :

PHP Code:
<?php
 
 
if ( !defined('BLOCK_FILE') ) {
    
Header("Location: ../index.php");
    die();
}
 
 
$theme get_theme();
$post_image "themes/$theme/forums/images/icon_latest_reply.gif";
global 
$prefix$user_prefix$db$user$cookie$group_id;
$content .= '
<script type="text/javascript">
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=\'\'
function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}
function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout(\'lefttime=setInterval("scrollmarquee()",30)\', delayb4scroll)
}
if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee
 
</script>
'
;
$content .= '
<div id="marqueecontainer" style="position: relative; width: 135px; height: 200px; overflow: hidden; padding: 2px; padding-left: 4px;" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
<div id="vmarquee" style="position: absolute; width: 98%;">
'
;
 
 
$content .= '
<div style="text-align:center; padding-top: 8px;"><img src="images/tn_toro.gif"><br />BHD</a></div>
</div>
</div>
<div style="padding-top: 8px;">
 
 
</div>
'
;
?>
Thanks in advance to you all
Mark

Last edited by internetking; 12-06-2007 at 10:52 AM..
internetking is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-06-2007, 10:24 AM Re: Wierd symbals appeared
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
You have got the page encoding mixed up...
Probably you are working in ISO-8859-1, and the page was saved in UTF-8.

They don't mean anything in particular, they are character badly interpreted between the 2 encoding.
They usually correspond to a pattern. Try to use a BOM aware editor (I use eclipse, from http://www.eclipse.org , but it may be a bit heavy just for that) or something that let you switch the document encoding.

Sorry, but I cannot tell you of any windows editor apart Eclipse that allow you to witch that setting.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Wierd symbals appeared
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37221 seconds with 12 queries