Write a Python function `replace_specialchar` that takes a string as input and replaces all occurrences of spaces (`' '`), commas (`','`), or dots (`'.'`) with a colon (`':'`).
#### Example Usage
```python [main.nopy]
replace_specialchar("Python language, Programming language.")
# Expected output: "Python:language::Programming:language:"
replace_specialchar("a b c,d e f")
# Expected output: "a:b:c:d:e:f"
replace_specialchar("ram reshma,ram rahim")
# Expected output: "ram:reshma:ram:rahim"
```
#### Constraints
- The input string may contain any printable characters.
- The function should handle empty strings gracefully.